diff options
Diffstat (limited to 'by-name-overlay.nix')
-rw-r--r-- | by-name-overlay.nix | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/by-name-overlay.nix b/by-name-overlay.nix index b52d81a..da53c5a 100644 --- a/by-name-overlay.nix +++ b/by-name-overlay.nix @@ -116,11 +116,7 @@ assert fileRegex == null -> fileName != null; let namesForElementDirect = name: type: {"${name}" = filterNull ((mkPath ".") name type);}; # A list of all paths. - files = flattenAttrs (mapAttrsToList namesForShard (builtins.readDir baseDirectory)); - output = - builtins.mapAttrs - finalizeFunction - files; + output = flattenAttrs (mapAttrsToList namesForShard (builtins.readDir baseDirectory)); in output; @@ -141,4 +137,6 @@ assert fileRegex == null -> fileName != null; let (filterAttrs (_: value: value != []) firstPass) else firstPass; in + builtins.mapAttrs + finalizeFunction secondPass |