about summary refs log tree commit diff
path: root/src/libstore
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/normalise.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libstore/normalise.cc b/src/libstore/normalise.cc
index ae743c136fb5..87747837084c 100644
--- a/src/libstore/normalise.cc
+++ b/src/libstore/normalise.cc
@@ -1049,8 +1049,11 @@ void NormalisationGoal::createClosure()
 	   in it. */
         startNest(nest2, lvlChatty,
             format("scanning for store references in `%1%'") % path);
-        Strings refPaths = filterReferences(path, 
-            Strings(allPaths.begin(), allPaths.end()));
+        Strings refPaths;
+        if (!pathExists(path + "/nix-support/no-scan")) {
+            refPaths = filterReferences(path, 
+                Strings(allPaths.begin(), allPaths.end()));
+        }
         nest2.close();
 
 	/* Construct a closure element for this output path. */