haskellPackages.tmp-postgres: fix test suite

Was failing before when trying to create files in `$HOME` and marked as
broken subsequently.
This commit is contained in:
sternenseemann 2021-06-20 23:51:37 +02:00
parent feed0f7253
commit dd728cd017
3 changed files with 3 additions and 3 deletions

View file

@ -787,6 +787,9 @@ self: super: {
# Needs pginit to function and pgrep to verify.
tmp-postgres = overrideCabal super.tmp-postgres (drv: {
preCheck = ''
export HOME="$TMPDIR"
'' + (drv.preCheck or "");
libraryToolDepends = drv.libraryToolDepends or [] ++ [pkgs.postgresql];
testToolDepends = drv.testToolDepends or [] ++ [pkgs.procps];
});

View file

@ -4755,7 +4755,6 @@ broken-packages:
- Titim
- tkhs
- tkyprof
- tmp-postgres
- todo
- tofromxml
- to-haskell

View file

@ -262697,8 +262697,6 @@ self: {
];
description = "Start and stop a temporary postgres";
license = lib.licenses.bsd3;
hydraPlatforms = lib.platforms.none;
broken = true;
}) {};
"tmpl" = callPackage