about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2019-09-07 19:50:07 +0200
committerPeter Simons <simons@cryp.to>2019-09-07 20:00:22 +0200
commit5f220007d5f5e42ce7de55f04899dcbc7ed48212 (patch)
tree9eac35ce99d9069d164615ef3254093f532e67f2 /pkgs/development/haskell-modules
parent3194a1eabd3b006533f3ff9af5b89a659a1efec0 (diff)
downloadnixlib-5f220007d5f5e42ce7de55f04899dcbc7ed48212.tar
nixlib-5f220007d5f5e42ce7de55f04899dcbc7ed48212.tar.gz
nixlib-5f220007d5f5e42ce7de55f04899dcbc7ed48212.tar.bz2
nixlib-5f220007d5f5e42ce7de55f04899dcbc7ed48212.tar.lz
nixlib-5f220007d5f5e42ce7de55f04899dcbc7ed48212.tar.xz
nixlib-5f220007d5f5e42ce7de55f04899dcbc7ed48212.tar.zst
nixlib-5f220007d5f5e42ce7de55f04899dcbc7ed48212.zip
haskell-arbtt: fix the test suite
Diffstat (limited to 'pkgs/development/haskell-modules')
-rw-r--r--pkgs/development/haskell-modules/configuration-common.nix9
-rw-r--r--pkgs/development/haskell-modules/configuration-hackage2nix.yaml1
2 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix
index fc008d52623d..c4cca42309db 100644
--- a/pkgs/development/haskell-modules/configuration-common.nix
+++ b/pkgs/development/haskell-modules/configuration-common.nix
@@ -1219,4 +1219,13 @@ self: super: {
   # https://github.com/elliottt/hsopenid/issues/15
   openid = markBroken super.openid;
 
+  # The test suite needs the packages's executables in $PATH to succeed.
+  arbtt = overrideCabal super.arbtt (drv: {
+    preCheck = ''
+      for i in $PWD/dist/build/*; do
+        export PATH="$i:$PATH"
+      done
+    '';
+  });
+
 } // import ./configuration-tensorflow.nix {inherit pkgs haskellLib;} self super
diff --git a/pkgs/development/haskell-modules/configuration-hackage2nix.yaml b/pkgs/development/haskell-modules/configuration-hackage2nix.yaml
index d6f25ce5451c..9cbc4c21aed5 100644
--- a/pkgs/development/haskell-modules/configuration-hackage2nix.yaml
+++ b/pkgs/development/haskell-modules/configuration-hackage2nix.yaml
@@ -3097,7 +3097,6 @@ broken-packages:
   - arbor-monad-metric
   - arbor-monad-metric-datadog
   - arbor-postgres
-  - arbtt
   - archiver
   - archlinux
   - archlinux-web