diff options
Diffstat (limited to 'tests/lang/eval-okay-autoargs.nix')
-rw-r--r-- | tests/lang/eval-okay-autoargs.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/lang/eval-okay-autoargs.nix b/tests/lang/eval-okay-autoargs.nix new file mode 100644 index 000000000000..1356bb5aa21f --- /dev/null +++ b/tests/lang/eval-okay-autoargs.nix @@ -0,0 +1,15 @@ +let + + foobar = "foobar"; + +in + +{ xyzzy2 ? xyzzy # mutually recursive args +, xyzzy ? "blaat" # will be overriden by --argstr +, fb ? foobar +, lib # will be set by --arg +}: + +{ + result = lib.concat [xyzzy xyzzy2 fb]; +} |