about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2017-12-29 17:39:16 +0100
committerPeter Simons <simons@cryp.to>2017-12-31 09:31:03 +0100
commitab3a12ed7ee0de4d247a8017151a1bf01829f6f7 (patch)
tree006f2b301f95d8c13fa126636af1104a819c307e /pkgs/development/haskell-modules
parent238d57484636ed0f57bdb7f6f8cebf02e58ee8c3 (diff)
downloadnixlib-ab3a12ed7ee0de4d247a8017151a1bf01829f6f7.tar
nixlib-ab3a12ed7ee0de4d247a8017151a1bf01829f6f7.tar.gz
nixlib-ab3a12ed7ee0de4d247a8017151a1bf01829f6f7.tar.bz2
nixlib-ab3a12ed7ee0de4d247a8017151a1bf01829f6f7.tar.lz
nixlib-ab3a12ed7ee0de4d247a8017151a1bf01829f6f7.tar.xz
nixlib-ab3a12ed7ee0de4d247a8017151a1bf01829f6f7.tar.zst
nixlib-ab3a12ed7ee0de4d247a8017151a1bf01829f6f7.zip
darcs: switch build to GHC 8.0.2 to fix it
Also, jailbreak the constraint on unix-compat <5.
Diffstat (limited to 'pkgs/development/haskell-modules')
-rw-r--r--pkgs/development/haskell-modules/configuration-common.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix
index b208d2781be7..3f6a2e55cb7b 100644
--- a/pkgs/development/haskell-modules/configuration-common.nix
+++ b/pkgs/development/haskell-modules/configuration-common.nix
@@ -1015,7 +1015,9 @@ self: super: {
 
   # https://github.com/haskell/cabal/issues/4969
   haddock-library_1_4_4 = dontHaddock super.haddock-library_1_4_4;
+  haddock-api = super.haddock-api.override { haddock-library = self.haddock-library_1_4_4; };
+
+  # Jailbreak "unix-compat >=0.1.2 && <0.5".
+  darcs = overrideCabal super.darcs (drv: { preConfigure = "sed -i -e 's/unix-compat .*,/unix-compat,/' darcs.cabal"; });
 
-  haddock-api = super.haddock-api.override
-    { haddock-library = self.haddock-library_1_4_4; };
 }