Skip to content

Commit

Permalink
squash! lib.packagesFromDirectoryRecursive: refactor (v2)
Browse files Browse the repository at this point in the history
Co-authored-by: Silvan Mosberger <[email protected]>
  • Loading branch information
nbraud and infinisil authored Dec 12, 2024
1 parent 42aa496 commit 1507e5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/filesystem.nix
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ in
inherit (lib.path) append;
defaultPath = append directory "package.nix";
in
if pathIsRegularFile defaultPath then
if pathExists defaultPath then
# if `${directory}/package.nix` exists, call it directly
callPackage defaultPath {}
else lib.concatMapAttrs (name: type:
Expand Down

0 comments on commit 1507e5a

Please sign in to comment.