* 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 {
|
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];
|
||||||
|
|
Loading…
Reference in a new issue