forked from lix-project/lix
Add a test for nix-assertion failures in nix-env
This commit is contained in:
parent
7afbdf2545
commit
3ff6186af1
1 changed files with 3 additions and 1 deletions
|
@ -9,7 +9,8 @@ assert foo == "foo";
|
|||
let
|
||||
|
||||
makeDrv = name: progName: (mkDerivation {
|
||||
inherit name progName system;
|
||||
name = assert progName != "fail"; name;
|
||||
inherit progName system;
|
||||
builder = ./user-envs.builder.sh;
|
||||
} // {
|
||||
meta = {
|
||||
|
@ -26,4 +27,5 @@ in
|
|||
(makeDrv "foo-2.0" "foo")
|
||||
(makeDrv "bar-0.1.1" "bar")
|
||||
(makeDrv "foo-0.1" "foo" // { meta.priority = 10; })
|
||||
(makeDrv "fail-0.1" "fail")
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue