diff --git a/flake.nix b/flake.nix index ba13fffc..1ae05ceb 100644 --- a/flake.nix +++ b/flake.nix @@ -169,7 +169,9 @@ ( x: builtins.foldl' - (acc: y: acc // { "${y.publisher}" = builtins.removeAttrs acc."${y.publisher}" y.extensions; }) + (acc: y: if !acc?${y.publisher} then acc else + acc // { "${y.publisher}" = builtins.removeAttrs acc.${y.publisher} y.extensions; } + ) x ( pkgs.lib.attrsets.mapAttrsToList (publisher: extensions: {