fix: Various minor fixes for new repository layout

This commit is contained in:
Vincent Ambo 2019-12-20 20:44:00 +00:00
parent 61c8ac4338
commit a65cb50252
3 changed files with 3 additions and 3 deletions

View file

@ -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) ]