diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-28 18:57:13 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-28 18:57:13 +0200 |
commit | b72e93bca8fc045b37b1e863c423cf0e91e8c479 (patch) | |
tree | a989f3e94ef1ed8501b382099b6ba6c82730fd6d /tests/check-refs.sh | |
parent | 9eddf6f0b68e1ac69d56de3c5c0899481ad2c6cf (diff) |
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 ];
Diffstat (limited to 'tests/check-refs.sh')
-rw-r--r-- | tests/check-refs.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/check-refs.sh b/tests/check-refs.sh index 9e103664a..34ee22cfc 100644 --- a/tests/check-refs.sh +++ b/tests/check-refs.sh @@ -32,3 +32,9 @@ nix-build -o $RESULT check-refs.nix -A test7 # test8 should fail (toFile depending on derivation output). (! nix-build -o $RESULT check-refs.nix -A test8) + +# test9 should fail (disallowed reference). +(! nix-build -o $RESULT check-refs.nix -A test9) + +# test10 should succeed (no disallowed references). +nix-build -o $RESULT check-refs.nix -A test10 |