forked from lix-project/lix
* Test-driven development, woohoo! nix-env should work on functions,
provided that all arguments have defaults.
This commit is contained in:
parent
287d0ef41c
commit
f8aadf14c3
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue