summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-ghc-7.2.x.nix
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2015-05-05 20:35:43 +0200
committerPeter Simons <simons@cryp.to>2015-05-05 21:44:47 +0200
commite36427857d3e9a70c241a8c1ffd3949dce913b7f (patch)
tree28335c506f01ad20b2d3384474333458c775a24e /pkgs/development/haskell-modules/configuration-ghc-7.2.x.nix
parent01ba9d0dec962ac5a7651150a1a6c43762f59b31 (diff)
downloadnixlib-e36427857d3e9a70c241a8c1ffd3949dce913b7f.tar
nixlib-e36427857d3e9a70c241a8c1ffd3949dce913b7f.tar.gz
nixlib-e36427857d3e9a70c241a8c1ffd3949dce913b7f.tar.bz2
nixlib-e36427857d3e9a70c241a8c1ffd3949dce913b7f.tar.lz
nixlib-e36427857d3e9a70c241a8c1ffd3949dce913b7f.tar.xz
nixlib-e36427857d3e9a70c241a8c1ffd3949dce913b7f.tar.zst
nixlib-e36427857d3e9a70c241a8c1ffd3949dce913b7f.zip
Fix cabal-install builds with ghc 7.0.x and 7.2.x.
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-ghc-7.2.x.nix')
-rw-r--r--pkgs/development/haskell-modules/configuration-ghc-7.2.x.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/development/haskell-modules/configuration-ghc-7.2.x.nix b/pkgs/development/haskell-modules/configuration-ghc-7.2.x.nix
index 49296fa04df3..b06a9dbbbd35 100644
--- a/pkgs/development/haskell-modules/configuration-ghc-7.2.x.nix
+++ b/pkgs/development/haskell-modules/configuration-ghc-7.2.x.nix
@@ -43,11 +43,16 @@ self: super: {
   # https://github.com/haskell/cabal/issues/2322
   Cabal_1_22_3_0 = super.Cabal_1_22_3_0.override { binary = self.binary_0_7_4_0; process = self.process_1_2_3_0; };
 
+  # Newer versions don't compile.
+  Cabal_1_18_1_6 = dontJailbreak super.Cabal_1_18_1_6;
+  cabal-install_1_18_0_8 = super.cabal-install_1_18_0_8.override { Cabal = self.Cabal_1_18_1_6; };
+  cabal-install = self.cabal-install_1_18_0_8;
+
   # https://github.com/tibbe/hashable/issues/85
   hashable = dontCheck super.hashable;
 
   # Needs Cabal >= 1.18.x.
-  jailbreak-cabal = super.jailbreak-cabal.override { Cabal = dontJailbreak self.Cabal_1_18_1_6; };
+  jailbreak-cabal = super.jailbreak-cabal.override { Cabal = self.Cabal_1_18_1_6; };
 
   # Haddock chokes on the prologue from the cabal file.
   ChasingBottoms = dontHaddock super.ChasingBottoms;