Skip to content

Commit

Permalink
nixosTests.postgresql.anonymizer: fix eval
Browse files Browse the repository at this point in the history
The `libpq` attribute from `postgresqlVersions` doesn't have a `pkgs`
attribute with extensions in it. Filtering for postgresql server
packages only fixes the problem.

Reported in NixOS#359659 (comment)
  • Loading branch information
Ma27 committed Jan 20, 2025
1 parent 5ff3902 commit a15220c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/tests/postgresql/anonymizer.nix
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ let
in
lib.recurseIntoAttrs (
lib.concatMapAttrs (n: p: { ${n} = makeTestFor p; }) (
lib.filterAttrs (_: p: !p.pkgs.anonymizer.meta.broken) pkgs.postgresqlVersions
lib.filterAttrs (_: p: lib.getName p == "postgresql" && !p.pkgs.anonymizer.meta.broken) pkgs.postgresqlVersions
)
// {
passthru.override = p: makeTestFor p;
Expand Down

0 comments on commit a15220c

Please sign in to comment.