about summary refs log tree commit diff
path: root/tests/check-reqs.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-08-28T16·57+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-08-28T16·57+0200
commitb72e93bca8fc045b37b1e863c423cf0e91e8c479 (patch)
treea989f3e94ef1ed8501b382099b6ba6c82730fd6d /tests/check-reqs.nix
parent9eddf6f0b68e1ac69d56de3c5c0899481ad2c6cf (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-reqs.nix')
-rw-r--r--tests/check-reqs.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/check-reqs.nix b/tests/check-reqs.nix
index 5af8ea6fa185..41436cb48e08 100644
--- a/tests/check-reqs.nix
+++ b/tests/check-reqs.nix
@@ -40,4 +40,18 @@ rec {
   test3 = makeTest 3 [ dep1 deps ];
   test4 = makeTest 4 [ deps ];
   test5 = makeTest 5 [];
+
+  test6 = mkDerivation {
+    name = "check-reqs";
+    inherit deps;
+    builder = builtins.toFile "builder.sh" "mkdir $out; ln -s $deps $out/depdir1";
+    disallowedRequisites = [dep1];
+  };
+
+  test7 = mkDerivation {
+    name = "check-reqs";
+    inherit deps;
+    builder = builtins.toFile "builder.sh" "mkdir $out; ln -s $deps $out/depdir1";
+    disallowedRequisites = [test1];
+  };
 }