From b72e93bca8fc045b37b1e863c423cf0e91e8c479 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 28 Aug 2014 18:57:13 +0200 Subject: 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 ]; --- tests/check-refs.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/check-refs.sh') diff --git a/tests/check-refs.sh b/tests/check-refs.sh index 9e103664a3a7..34ee22cfc8f7 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 -- cgit 1.4.1