about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2019-09-29 09:11:04 +0200
committerDomen Kožar <domen@dev.si>2019-09-29 09:11:04 +0200
commit606b9f40aaff48045af51276142c6e14b3328016 (patch)
treeff30e0da6752b7f2bb07f74564b8a4a102c05c12 /pkgs/development/haskell-modules
parentdbaa4d098e21e9d161b2a2ca51267ec5f937b593 (diff)
downloadnixlib-606b9f40aaff48045af51276142c6e14b3328016.tar
nixlib-606b9f40aaff48045af51276142c6e14b3328016.tar.gz
nixlib-606b9f40aaff48045af51276142c6e14b3328016.tar.bz2
nixlib-606b9f40aaff48045af51276142c6e14b3328016.tar.lz
nixlib-606b9f40aaff48045af51276142c6e14b3328016.tar.xz
nixlib-606b9f40aaff48045af51276142c6e14b3328016.tar.zst
nixlib-606b9f40aaff48045af51276142c6e14b3328016.zip
haskell.packages.ghc881.regex-posix: fix build
Diffstat (limited to 'pkgs/development/haskell-modules')
-rw-r--r--pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix b/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix
index 2c4f3967a22f..09faec3cfa37 100644
--- a/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix
+++ b/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix
@@ -84,9 +84,11 @@ self: super: {
   })) (drv: {
     preConfigure = "sed -i -e 's/base >=4 && < 4.13,/base,/' regex-base.cabal";
   });
-  regex-posix = appendPatch super.regex-posix (pkgs.fetchpatch {
+  regex-posix = overrideCabal (appendPatch super.regex-posix (pkgs.fetchpatch {
     url = "https://raw.githubusercontent.com/hvr/head.hackage/master/patches/regex-posix-0.95.2.patch";
     sha256 = "006yli58jpqp786zm1xlncjsilc38iv3a09r4pv94l587sdzasd2";
+  })) (drv: {
+    preConfigure = "sed -i -e 's/base >= 4 && < 4.13/base/' regex-posix.cabal";
   });
   optparse-applicative = appendPatch (doJailbreak super.optparse-applicative) (pkgs.fetchpatch {
     url = "https://raw.githubusercontent.com/hvr/head.hackage/master/patches/optparse-applicative-0.14.3.0.patch";