about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix
diff options
context:
space:
mode:
authorsternenseemann <sternenseemann@systemli.org>2023-07-02 14:03:22 +0200
committersternenseemann <sternenseemann@systemli.org>2023-07-02 14:22:20 +0200
commit54ebdad42dd5861538de31319206fcef78ec9df5 (patch)
tree7e246bc9ca0ec0ee192941c6ce93204f903a0b4f /pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix
parent6cc8bbe4b62b8a2005c78093220751bcdb804922 (diff)
downloadnixlib-54ebdad42dd5861538de31319206fcef78ec9df5.tar
nixlib-54ebdad42dd5861538de31319206fcef78ec9df5.tar.gz
nixlib-54ebdad42dd5861538de31319206fcef78ec9df5.tar.bz2
nixlib-54ebdad42dd5861538de31319206fcef78ec9df5.tar.lz
nixlib-54ebdad42dd5861538de31319206fcef78ec9df5.tar.xz
nixlib-54ebdad42dd5861538de31319206fcef78ec9df5.tar.zst
nixlib-54ebdad42dd5861538de31319206fcef78ec9df5.zip
haskell.packages.{ghc88,ghc810}.base-compat-batteries: loosen OneTuple bound
Loosening the bound seems easier than downgrading OneTuple in these package sets.
See also the linked issue.
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix')
-rw-r--r--pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix8
1 files changed, 7 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 ad9b8e5a1d11..f899f26562f9 100644
--- a/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix
+++ b/pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix
@@ -61,7 +61,13 @@ self: super: {
   cabal2spec = super.cabal2spec.override { Cabal = self.Cabal_3_2_1_0; };
 
   # Additionally depends on OneTuple for GHC < 9.0
-  base-compat-batteries = addBuildDepend self.OneTuple super.base-compat-batteries;
+  # https://github.com/haskell-compat/base-compat/issues/91
+  base-compat-batteries = addBuildDepend self.OneTuple (overrideCabal (drv: {
+    postPatch = ''
+      ${drv.postPatch or ""}
+      sed -i 's/OneTuple >= 0.3 && < 0.4/OneTuple/' *.cabal
+    '';
+  }) super.base-compat-batteries);
 
   # For GHC < 9.4, some packages need data-array-byte as an extra dependency
   primitive = addBuildDepends [ self.data-array-byte ] super.primitive;