mirror of
https://github.com/NixOS/nix
synced 2025-07-10 04:43:53 +02:00
* Tests for nix-env, finally!
This commit is contained in:
parent
39f50db731
commit
e771e59178
5 changed files with 108 additions and 1 deletions
19
tests/user-envs.nix.in
Normal file
19
tests/user-envs.nix.in
Normal file
|
@ -0,0 +1,19 @@
|
|||
let {
|
||||
|
||||
makeDrv = name: progName: derivation {
|
||||
inherit name progName;
|
||||
system = "@system@";
|
||||
builder = "@shell@";
|
||||
shell = "@shell@";
|
||||
args = ["-e" "-x" ./user-envs.builder.sh];
|
||||
};
|
||||
|
||||
body = [
|
||||
(makeDrv "foo-1.0" "foo")
|
||||
(makeDrv "foo-2.0pre1" "foo")
|
||||
(makeDrv "bar-0.1" "bar")
|
||||
(makeDrv "foo-2.0" "foo")
|
||||
(makeDrv "bar-0.1.1" "bar")
|
||||
];
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue