about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2015-01-13 13:05:41 +0100
committerPeter Simons <simons@cryp.to>2015-01-13 15:21:51 +0100
commit51b9c9b262a85e2658303d8706f56fa16fab04db (patch)
treec89f161319f8e37232f3c844c12891fbdbf5dea5 /pkgs
parent2ba3653ef6516e83592736c2684f15ff27d5d2a1 (diff)
downloadnixlib-51b9c9b262a85e2658303d8706f56fa16fab04db.tar
nixlib-51b9c9b262a85e2658303d8706f56fa16fab04db.tar.gz
nixlib-51b9c9b262a85e2658303d8706f56fa16fab04db.tar.bz2
nixlib-51b9c9b262a85e2658303d8706f56fa16fab04db.tar.lz
nixlib-51b9c9b262a85e2658303d8706f56fa16fab04db.tar.xz
nixlib-51b9c9b262a85e2658303d8706f56fa16fab04db.tar.zst
nixlib-51b9c9b262a85e2658303d8706f56fa16fab04db.zip
idris: fix build with GHC 7.8.x
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/haskell-modules/configuration-ghc-7.8.x.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-ghc-7.8.x.nix b/pkgs/development/haskell-modules/configuration-ghc-7.8.x.nix
index 991be3554e06..63e49196580f 100644
--- a/pkgs/development/haskell-modules/configuration-ghc-7.8.x.nix
+++ b/pkgs/development/haskell-modules/configuration-ghc-7.8.x.nix
@@ -36,6 +36,18 @@ self: super: {
 
   # mtl 2.2.x needs the latest transformers.
   mtl_2_2_1 = super.mtl_2_2_1.override { transformers = self.transformers_0_4_2_0; };
+
+  # Idris requires mtl 2.2.x.
+  idris = overrideCabal (super.idris.overrideScope (self: super: {
+    mkDerivation = drv: super.mkDerivation (drv // { doCheck = false; });
+    transformers = super.transformers_0_4_2_0;
+    transformers-compat = disableCabalFlag super.transformers-compat "three";
+    mtl = super.mtl_2_2_1;
+  })) (drv: {
+    jailbreak = true;           # idris is scared of lens 4.7
+    patchPhase = "find . -name '*.hs' -exec sed -i -s 's|-Werror||' {} +";
+  });                           # warning: "Module ‘Control.Monad.Error’ is deprecated"
+
 }
 
 // # packages relating to amazonka