about summary refs log tree commit diff
path: root/tests/user-envs.nix.in
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-02-08T15·21+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-02-08T15·21+0000
commitf8aadf14c3426f7ab2b7a934b602f812bcc5b8ae (patch)
tree0c2d92315b94a27e483a51081a52d7a1d358b44d /tests/user-envs.nix.in
parent287d0ef41c347d91c0cd2f74ab4e48df7c125cc8 (diff)
* Test-driven development, woohoo! nix-env should work on functions,
  provided that all arguments have defaults.

Diffstat (limited to 'tests/user-envs.nix.in')
-rw-r--r--tests/user-envs.nix.in10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/user-envs.nix.in b/tests/user-envs.nix.in
index 5700a33227..21feea0d31 100644
--- a/tests/user-envs.nix.in
+++ b/tests/user-envs.nix.in
@@ -1,8 +1,14 @@
+# Some dummy arguments...
+{ system ? "@system@"
+, foo ? "foo"
+}:
+
+assert foo == "foo";
+
 let {
 
   makeDrv = name: progName: derivation {
-    inherit name progName;
-    system = "@system@";
+    inherit name progName system;
     builder = "@shell@";
     shell = "@shell@";
     args = ["-e" "-x" ./user-envs.builder.sh];