about summary refs log tree commit diff
path: root/nix/readTree/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix/readTree/default.nix')
-rw-r--r--nix/readTree/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nix/readTree/default.nix b/nix/readTree/default.nix
index 2ad8e40f6c28..5468d41fd2c7 100644
--- a/nix/readTree/default.nix
+++ b/nix/readTree/default.nix
@@ -100,7 +100,8 @@ let
       }) (filter filterDir (attrNames dir));
 
       # Import Nix files
-      nixFiles = filter (f: f != null) (map nixFileName (attrNames dir));
+      nixFiles = if hasAttr ".skip-subtree" dir then []
+        else filter (f: f != null) (map nixFileName (attrNames dir));
       nixChildren = map (c: let
         p = joinChild (c + ".nix");
         childParts = parts ++ [ c ];