nixosTests.postgresql.*: fix eval

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 https://github.com/NixOS/nixpkgs/pull/359659#issuecomment-2601045449
This commit is contained in:
Maximilian Bosch 2025-01-20 10:30:08 +01:00
parent 5ff390289e
commit 7ab1e88833
No known key found for this signature in database
9 changed files with 15 additions and 9 deletions

View file

@ -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: p ? pkgs && !p.pkgs.anonymizer.meta.broken) pkgs.postgresqlVersions
)
// {
passthru.override = p: makeTestFor p;