From a65cb502520d09353295a3d10c6203e3273be70f Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 20 Dec 2019 20:44:00 +0000 Subject: fix: Various minor fixes for new repository layout --- read-tree.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'read-tree.nix') diff --git a/read-tree.nix b/read-tree.nix index 82d5f040b2..052865914e 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) ] -- cgit 1.4.1