* 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 {
makeDrv = name: progName: derivation {
inherit name progName;
system = "@system@";
inherit name progName system;
builder = "@shell@";
shell = "@shell@";
args = ["-e" "-x" ./user-envs.builder.sh];