diff options
Diffstat (limited to 'test/testdata/eval-okay-autoargs.nix')
-rw-r--r-- | test/testdata/eval-okay-autoargs.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/testdata/eval-okay-autoargs.nix b/test/testdata/eval-okay-autoargs.nix new file mode 100644 index 0000000..815f51b --- /dev/null +++ b/test/testdata/eval-okay-autoargs.nix | |||
@@ -0,0 +1,15 @@ | |||
1 | let | ||
2 | |||
3 | foobar = "foobar"; | ||
4 | |||
5 | in | ||
6 | |||
7 | { xyzzy2 ? xyzzy # mutually recursive args | ||
8 | , xyzzy ? "blaat" # will be overridden by --argstr | ||
9 | , fb ? foobar | ||
10 | , lib # will be set by --arg | ||
11 | }: | ||
12 | |||
13 | { | ||
14 | result = lib.concat [xyzzy xyzzy2 fb]; | ||
15 | } | ||