forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib.filesystem.packagesFromDirectoryRecursive: refactor (NixOS#359941)
No functional changes. - Centralize the logic classifying files/directories of interest, instead of being spread between `directoryEntryIsPackage` and `directoryEntryToAttrPair`. - Replace a composition of `mapAttrs'` and `filterAttrs` with `concatMapAttrs`. - Simplify future improvements, such as creating nested scopes for subdirs, or ignoring unsupported files.
- Loading branch information
Showing
1 changed file
with
27 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters