diff options
author | Vincent Ambo <tazjin@google.com> | 2019-12-20T20·44+0000 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2019-12-20T20·44+0000 |
commit | a65cb502520d09353295a3d10c6203e3273be70f (patch) | |
tree | cc419f29713c4a53c5698e942d46e7ca9e8f0046 /read-tree.nix | |
parent | 61c8ac433878ea34f5bfb4232143ad43f4af2df2 (diff) |
fix: Various minor fixes for new repository layout r/240
Diffstat (limited to 'read-tree.nix')
-rw-r--r-- | read-tree.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/read-tree.nix b/read-tree.nix index 82d5f040b2bc..052865914e5b 100644 --- a/read-tree.nix +++ b/read-tree.nix @@ -56,6 +56,6 @@ let value = importWithMark p (parts ++ [ c ]); }) nixFiles; in if dir ? "default.nix" - then self // (listToAttrs children) + then (if isAttrs self then self // (listToAttrs children) else self) else listToAttrs (nixChildren ++ children); in readTree initPath [ (baseNameOf initPath) ] |