From 27d727d7e7079938e045db4e993ca5dcf7003351 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Wed, 29 Jan 2025 14:38:15 +0100 Subject: fix(by-name-overlay): Apply the `finalizeFunction` to the correct attr set --- by-name-overlay.nix | 8 +++----- 1 file 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 -- cgit 1.4.1