about summary refs log tree commit diff
path: root/third_party/nix/src/tests/lang/evalargs-okay-autoargs.nix
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/src/tests/lang/evalargs-okay-autoargs.nix')
-rw-r--r--third_party/nix/src/tests/lang/evalargs-okay-autoargs.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/third_party/nix/src/tests/lang/evalargs-okay-autoargs.nix b/third_party/nix/src/tests/lang/evalargs-okay-autoargs.nix
new file mode 100644
index 000000000000..815f51b1d67a
--- /dev/null
+++ b/third_party/nix/src/tests/lang/evalargs-okay-autoargs.nix
@@ -0,0 +1,15 @@
+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.concat [xyzzy xyzzy2 fb];
+}