From a4ec946a2f1a66d3938261c9ca80e8f87d04644e Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Sun, 19 Jun 2022 14:15:09 +0200 Subject: [PATCH] haskellPackages.arbtt: provide tzdata for test suite --- .../haskell-modules/configuration-common.nix | 11 ----------- .../haskell-modules/configuration-nix.nix | 13 +++++++++++++ 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index aa13503ee0f6..bd55a19f4262 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.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; diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix index 67eb32984738..ba5d70682a8c 100644 --- a/pkgs/development/haskell-modules/configuration-nix.nix +++ b/pkgs/development/haskell-modules/configuration-nix.nix @@ -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" ];