diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-02-08T15·21+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-02-08T15·21+0000 |
commit | f8aadf14c3426f7ab2b7a934b602f812bcc5b8ae (patch) | |
tree | 0c2d92315b94a27e483a51081a52d7a1d358b44d /tests | |
parent | 287d0ef41c347d91c0cd2f74ab4e48df7c125cc8 (diff) |
* Test-driven development, woohoo! nix-env should work on functions,
provided that all arguments have defaults.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/user-envs.nix.in | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/user-envs.nix.in b/tests/user-envs.nix.in index 5700a33227b0..21feea0d31c9 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]; |