1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 14:21:48 +02:00

Add disallowedReferences / disallowedRequisites

For the "stdenv accidentally referring to bootstrap-tools", it seems
easier to specify the path that we don't want to depend on, e.g.

  disallowedRequisites = [ bootstrapTools ];
This commit is contained in:
Eelco Dolstra 2014-08-28 18:57:13 +02:00
parent 9eddf6f0b6
commit b72e93bca8
5 changed files with 64 additions and 28 deletions

View file

@ -2,11 +2,12 @@ source common.sh
RESULT=$TEST_ROOT/result
# test1 should succeed.
nix-build -o $RESULT check-reqs.nix -A test1
# test{2,3,4,5} should fail.
(! nix-build -o $RESULT check-reqs.nix -A test2)
(! nix-build -o $RESULT check-reqs.nix -A test3)
(! nix-build -o $RESULT check-reqs.nix -A test4)
(! nix-build -o $RESULT check-reqs.nix -A test5)
(! nix-build -o $RESULT check-reqs.nix -A test6)
nix-build -o $RESULT check-reqs.nix -A test7