* Test-driven development, woohoo! nix-env should work on functions,

provided that all arguments have defaults.
This commit is contained in:
Eelco Dolstra 2006-02-08 15:21:57 +00:00
parent 287d0ef41c
commit f8aadf14c3

View file

@ -1,8 +1,14 @@
# Some dummy arguments...
{ system ? "@system@"
, foo ? "foo"
}:
assert foo == "foo";
let { let {
makeDrv = name: progName: derivation { makeDrv = name: progName: derivation {
inherit name progName; inherit name progName system;
system = "@system@";
builder = "@shell@"; builder = "@shell@";
shell = "@shell@"; shell = "@shell@";
args = ["-e" "-x" ./user-envs.builder.sh]; args = ["-e" "-x" ./user-envs.builder.sh];