1
1
forked from extern/flakelight

Use src as default nixDir if ./nix does not exist

This commit is contained in:
Archit Gupta 2023-04-22 11:50:39 -07:00
parent f4f7a8cd37
commit d871fd7cbf
2 changed files with 3 additions and 5 deletions

View File

@ -368,7 +368,8 @@ let
root' =
let
appliedRoot = applyNonSysArgs root;
nixDir = appliedRoot.nixDir or (src + /nix);
nixDir = appliedRoot.nixDir or
(if pathExists (src + /nix) then src + /nix else src);
fullRoot = (autoImportAttrs nixDir rootAttrs attrAliases)
// appliedRoot;
in

View File

@ -8,8 +8,5 @@
let
flakelite = import ./. inputs;
in
flakelite ./. {
nixDir = ./.;
outputs = _: flakelite;
};
flakelite ./. { outputs = _: flakelite; };
}