autoargs get their own folder and are not allowed with the other function args tests, just like they deserve their own ring of hell It shall be noted though that this test is particularly pointless, as it merely tests the normal argument passing (which is fine), and not the ✨magic✨ autoargs actually provide Change-Id: Ia2dc00754a13c02e4926200141f90bc797820a15
16 lines
244 B
Nix
16 lines
244 B
Nix
let
|
|
|
|
foobar = "foobar";
|
|
|
|
in
|
|
|
|
{ xyzzy2 ? xyzzy # mutually recursive args
|
|
, xyzzy ? "blaat" # will be overridden by --argstr
|
|
, fb ? foobar
|
|
, lib # will be set by --arg
|
|
}:
|
|
|
|
{
|
|
result = lib.id (builtins.concatStringsSep "" [xyzzy xyzzy2 fb]);
|
|
}
|