forked from mirrors/nixpkgs
haskellPackages.persistent-postgresql: disable broken tests
Test suite can't currently be built with Stackage LTS-20.
This commit is contained in:
parent
3dfbe2b6a3
commit
432c3ab524
|
@ -1123,6 +1123,7 @@ self: super: {
|
|||
# Test suite requires database
|
||||
persistent-mysql = dontCheck super.persistent-mysql;
|
||||
persistent-postgresql =
|
||||
# TODO: move this override to configuration-nix.nix
|
||||
overrideCabal
|
||||
(drv: {
|
||||
postPatch = drv.postPath or "" + ''
|
||||
|
@ -1131,8 +1132,14 @@ self: super: {
|
|||
sed -i test/PgInit.hs \
|
||||
-e s^'host=" <> host <> "'^^
|
||||
'';
|
||||
# https://github.com/NixOS/nixpkgs/issues/198495
|
||||
doCheck = pkgs.postgresql.doCheck;
|
||||
doCheck =
|
||||
# https://github.com/commercialhaskell/stackage/issues/6884
|
||||
# persistent-postgresql-2.13.5.1 needs persistent-test >= 2.13.1.3 which
|
||||
# is incompatible with the stackage version of persistent, so the tests
|
||||
# are disabled temporarily.
|
||||
false
|
||||
# https://github.com/NixOS/nixpkgs/issues/198495
|
||||
&& pkgs.postgresql.doCheck;
|
||||
preCheck = drv.preCheck or "" + ''
|
||||
PGDATABASE=test
|
||||
PGUSER=test
|
||||
|
|
Loading…
Reference in a new issue