mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 00:08:07 +02:00
* 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 changed files with 8 additions and 2 deletions
|
@ -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