summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2018-07-10 16:32:06 +0200
committerPeter Simons <simons@cryp.to>2018-07-10 20:10:27 +0200
commite36fcd28a2bf45ced1382f93b4c9898a0d10bb85 (patch)
tree0b9bddaa617c90bd3516c1cb4ec240c9e64b07dc /pkgs
parent13978304706e6396a8cb60c7fc2291f3e3dac65c (diff)
downloadnixpkgs-e36fcd28a2bf45ced1382f93b4c9898a0d10bb85.tar
nixpkgs-e36fcd28a2bf45ced1382f93b4c9898a0d10bb85.tar.gz
nixpkgs-e36fcd28a2bf45ced1382f93b4c9898a0d10bb85.tar.bz2
nixpkgs-e36fcd28a2bf45ced1382f93b4c9898a0d10bb85.tar.lz
nixpkgs-e36fcd28a2bf45ced1382f93b4c9898a0d10bb85.tar.xz
nixpkgs-e36fcd28a2bf45ced1382f93b4c9898a0d10bb85.tar.zst
nixpkgs-e36fcd28a2bf45ced1382f93b4c9898a0d10bb85.zip
cabal2nix: help the regression test suite locate the cabal2nix binary
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/haskell-modules/configuration-common.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix
index 96b5562c167..319dba067cf 100644
--- a/pkgs/development/haskell-modules/configuration-common.nix
+++ b/pkgs/development/haskell-modules/configuration-common.nix
@@ -1093,6 +1093,14 @@ self: super: {
   haddock-library = doJailbreak (dontCheck super.haddock-library);
   haddock-library_1_6_0 = doJailbreak (dontCheck super.haddock-library_1_6_0);
 
+  # The test suite does not know how to find the 'cabal2nix' binary.
+  cabal2nix = overrideCabal super.cabal2nix (drv: {
+    preCheck = ''
+      export PATH="$PWD/dist/build/cabal2nix:$PATH"
+      export HOME="$TMPDIR/home"
+    '';
+  });
+
 }
 
 //