postgresql.withPackages: expose tests passthru

This allows running tests for example on `orioledb`, which is not only a
`postgresql` package, but wrapped with an extension.
This commit is contained in:
Wolfgang Walther
2026-07-12 22:19:39 +02:00
parent 483003dbd1
commit 895db8b608
+5
View File
@@ -64,6 +64,11 @@ buildEnv (finalAttrs: {
};
};
tests = lib.mapAttrs (
_: test:
if test.passthru or { } ? "override" then test.passthru.override finalAttrs.finalPackage else test
) postgresql.tests;
withJIT = recurse (_: installedExtensions ++ [ postgresql.jit ]);
withoutJIT = recurse (_: lib.remove postgresql.jit installedExtensions);