haskellPackages.pg-client: Enable tests

This commit is contained in:
Robert Hensing 2022-04-16 17:19:13 +02:00
parent e77e09c5d2
commit 5388103926

View File

@ -1515,8 +1515,13 @@ self: super: {
};
pg-client = overrideCabal (drv: {
librarySystemDepends = with pkgs; [ postgresql krb5.dev openssl.dev ];
# wants a running DB to check against
doCheck = false;
testToolDepends = drv.testToolDepends or [] ++ [
pkgs.postgresql pkgs.postgresqlTestHook
];
preCheck = drv.preCheck or "" + ''
# empty string means use default connection
export DATABASE_URL=""
'';
}) (super.pg-client.override {
resource-pool = self.hasura-resource-pool;
ekg-core = self.hasura-ekg-core;