about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-ghc-9.6.x.nix
diff options
context:
space:
mode:
authorTristan Cacqueray <tdecacqu@redhat.com>2023-03-27 11:42:38 +0000
committersternenseemann <sternenseemann@systemli.org>2023-03-27 22:29:16 +0200
commitb9afffd107bb47fefde3ecccd10501de19b3441b (patch)
tree567544c8cb778f74b5f2091ed369affce1972f34 /pkgs/development/haskell-modules/configuration-ghc-9.6.x.nix
parentbbc633e5fe1566e98315ae664e95083aaa64d17d (diff)
downloadnixlib-b9afffd107bb47fefde3ecccd10501de19b3441b.tar
nixlib-b9afffd107bb47fefde3ecccd10501de19b3441b.tar.gz
nixlib-b9afffd107bb47fefde3ecccd10501de19b3441b.tar.bz2
nixlib-b9afffd107bb47fefde3ecccd10501de19b3441b.tar.lz
nixlib-b9afffd107bb47fefde3ecccd10501de19b3441b.tar.xz
nixlib-b9afffd107bb47fefde3ecccd10501de19b3441b.tar.zst
nixlib-b9afffd107bb47fefde3ecccd10501de19b3441b.zip
haskell.packages.ghc96.foundation: add build patch
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-ghc-9.6.x.nix')
-rw-r--r--pkgs/development/haskell-modules/configuration-ghc-9.6.x.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-ghc-9.6.x.nix b/pkgs/development/haskell-modules/configuration-ghc-9.6.x.nix
index 73e9c81ae55b..a7f19e119d4b 100644
--- a/pkgs/development/haskell-modules/configuration-ghc-9.6.x.nix
+++ b/pkgs/development/haskell-modules/configuration-ghc-9.6.x.nix
@@ -141,6 +141,18 @@ self: super: {
   # Compilation failure workarounds
   #
 
+  # Add missing Functor instance for Tuple2
+  # https://github.com/haskell-foundation/foundation/pull/572
+  foundation = appendPatches [
+      (pkgs.fetchpatch {
+        name = "foundation-pr-572.patch";
+        url =
+          "https://github.com/haskell-foundation/foundation/commit/d3136f4bb8b69e273535352620e53f2196941b35.patch";
+        sha256 = "sha256-oPadhQdCPJHICdCPxn+GsSQUARIYODG8Ed6g2sK+eC4=";
+        stripLen = 1;
+      })
+    ] (super.foundation);
+
   # Test suite doesn't compile with base-4.18 / GHC 9.6
   # https://github.com/dreixel/syb/issues/40
   syb = dontCheck super.syb;