summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-01-29 14:38:15 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-01-29 14:38:15 +0100
commit27d727d7e7079938e045db4e993ca5dcf7003351 (patch)
treed5fdc1ae8d337772c1b47e8c36760613c7a3139a
parentfix(by-name-overlay): Correctly work with `useShards = true` (diff)
downloadnix-library-27d727d7e7079938e045db4e993ca5dcf7003351.zip
fix(by-name-overlay): Apply the `finalizeFunction` to the correct attr set
-rw-r--r--by-name-overlay.nix8
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