mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-08 10:48:06 +09:00
41 lines
1,014 B
Nix
41 lines
1,014 B
Nix
{
|
|
system ? builtins.currentSystem,
|
|
config ? { },
|
|
pkgs ? import ../../.. { inherit system config; },
|
|
}:
|
|
|
|
with import ../../lib/testing-python.nix { inherit system pkgs; };
|
|
|
|
let
|
|
inherit (pkgs.lib)
|
|
recurseIntoAttrs
|
|
filterAttrs
|
|
mapAttrs
|
|
const
|
|
;
|
|
genTests =
|
|
{
|
|
makeTestFor,
|
|
filter ? (_: _: true),
|
|
}:
|
|
recurseIntoAttrs (
|
|
mapAttrs (const makeTestFor) (filterAttrs filter pkgs.postgresqlVersions)
|
|
// {
|
|
passthru.override = makeTestFor;
|
|
}
|
|
);
|
|
|
|
importWithArgs = path: import path { inherit pkgs makeTest genTests; };
|
|
in
|
|
{
|
|
# postgresql
|
|
postgresql = importWithArgs ./postgresql.nix;
|
|
postgresql-jit = importWithArgs ./postgresql-jit.nix;
|
|
postgresql-wal-receiver = importWithArgs ./postgresql-wal-receiver.nix;
|
|
postgresql-tls-client-cert = importWithArgs ./postgresql-tls-client-cert.nix;
|
|
|
|
# extensions
|
|
anonymizer = importWithArgs ./anonymizer.nix;
|
|
pgjwt = importWithArgs ./pgjwt.nix;
|
|
wal2json = importWithArgs ./wal2json.nix;
|
|
}
|