haskellPackages.arbtt: provide tzdata for test suite

main
sternenseemann 2 years ago
parent 47d6b18910
commit a4ec946a2f
  1. 11
      pkgs/development/haskell-modules/configuration-common.nix
  2. 13
      pkgs/development/haskell-modules/configuration-nix.nix

@ -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" ];

Loading…
Cancel
Save