Use builtins.groupBy over lib.groupBy because of performance

See https://github.com/NixOS/nix/pull/5715
This commit is contained in:
SebastianStork 2025-10-17 17:01:22 +02:00
parent b601f42f93
commit ac48782b56
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q
3 changed files with 3 additions and 3 deletions

View file

@ -41,7 +41,7 @@ in
inherit domain;
})
)
|> lib.groupBy (entry: toString entry.domain)
|> builtins.groupBy (entry: toString entry.domain)
|> lib.mapAttrs (_: values: values |> lib.map (value: value.file))
|> lib.filterAttrs (_: files: lib.length files > 1);