diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-01-29 14:38:15 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-01-29 14:38:15 +0100 |
commit | 27d727d7e7079938e045db4e993ca5dcf7003351 (patch) | |
tree | d5fdc1ae8d337772c1b47e8c36760613c7a3139a | |
parent | fix(by-name-overlay): Correctly work with `useShards = true` (diff) | |
download | nix-library-27d727d7e7079938e045db4e993ca5dcf7003351.zip |
fix(by-name-overlay): Apply the `finalizeFunction` to the correct attr set
-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 |