haskellPackages.arbtt: provide tzdata for test suite

This commit is contained in:
sternenseemann
2022-06-19 14:15:27 +02:00
parent 47d6b18910
commit a4ec946a2f
2 changed files with 13 additions and 11 deletions
@@ -1161,17 +1161,6 @@ self: super: {
# https://github.com/elliottt/hsopenid/issues/15
openid = markBroken super.openid;
# Version constraints on test dependency tasty-golden need to be relaxed:
# https://github.com/nomeata/arbtt/pull/146
arbtt = doJailbreak (overrideCabal (drv: {
# The test suite needs the packages's executables in $PATH to succeed.
preCheck = ''
for i in $PWD/dist/build/*; do
export PATH="$i:$PATH"
done
'';
}) super.arbtt);
# https://github.com/erikd/hjsmin/issues/32
hjsmin = dontCheck super.hjsmin;
@@ -99,6 +99,19 @@ self: super: builtins.intersectAttrs super {
ormolu = enableSeparateBinOutput super.ormolu;
ghcid = enableSeparateBinOutput super.ghcid;
arbtt = overrideCabal (drv: {
# The test suite needs the packages's executables in $PATH to succeed.
preCheck = ''
for i in $PWD/dist/build/*; do
export PATH="$i:$PATH"
done
'';
# One test uses timezone data
testToolDepends = drv.testToolDepends or [] ++ [
pkgs.tzdata
];
}) super.arbtt;
hzk = overrideCabal (drv: {
preConfigure = "sed -i -e /include-dirs/d hzk.cabal";
configureFlags = [ "--extra-include-dirs=${pkgs.zookeeper_mt}/include/zookeeper" ];