summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2020-04-17 22:50:00 +0200
committerPeter Simons <simons@cryp.to>2020-04-17 22:50:43 +0200
commit10100a97c8964e82b30f180fda41ade8e6f69e41 (patch)
tree3fa5458fd4d57c0f5adbf514e9d6b26fcbc82819 /pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix
parent135ae45d24e4dfe177c8511ce76815e21c6108cd (diff)
downloadnixpkgs-10100a97c8964e82b30f180fda41ade8e6f69e41.tar
nixpkgs-10100a97c8964e82b30f180fda41ade8e6f69e41.tar.gz
nixpkgs-10100a97c8964e82b30f180fda41ade8e6f69e41.tar.bz2
nixpkgs-10100a97c8964e82b30f180fda41ade8e6f69e41.tar.lz
nixpkgs-10100a97c8964e82b30f180fda41ade8e6f69e41.tar.xz
nixpkgs-10100a97c8964e82b30f180fda41ade8e6f69e41.tar.zst
nixpkgs-10100a97c8964e82b30f180fda41ade8e6f69e41.zip
ghc-8.10.x: add plenty of overrides to fix builds
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix')
-rw-r--r--pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix b/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix
index f9e9e189a9a..74ca5c9342f 100644
--- a/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix
+++ b/pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix
@@ -60,5 +60,38 @@ self: super: {
   zlib = doJailbreak super.zlib;
 
   # Use the latest version to fix the build.
+  microlens-th = self.microlens-th_0_4_3_5;
+  optics-core = self.optics-core_0_3;
+  repline = self.repline_0_3_0_0;
+  ghc-lib-parser-ex = self.ghc-lib-parser-ex_8_10_0_4;
+  th-desugar = self.th-desugar_1_11;
+
+  # `ghc-lib-parser-ex` (see conditionals in its `.cabal` file) does not need
+  # the `ghc-lib-parser` dependency on GHC >= 8.8. However, because we have
+  # multiple verions of `ghc-lib-parser(-ex)` available, and the default ones
+  # are older ones, those older ones will complain. Because we have a newer
+  # GHC, we can just set the dependency to `null` as it is not used.
+  ghc-lib-parser-ex_8_10_0_4 = super.ghc-lib-parser-ex_8_10_0_4.override { ghc-lib-parser = null; };
+
+  # Jailbreak to fix the build.
+  aeson-diff = doJailbreak super.aeson-diff;
+  cborg = doJailbreak super.cborg;
+  cborg-json = doJailbreak super.cborg-json;
+  exact-pi = doJailbreak super.exact-pi;
+  relude = dontCheck (doJailbreak super.relude);
+  serialise = doJailbreak super.serialise;
+  setlocale = doJailbreak super.setlocale;
+  shellmet = doJailbreak super.shellmet;
+  brick = doJailbreak super.brick;
+
+  # The shipped Setup.hs file is broken.
+  csv = overrideCabal super.csv (drv: { preCompileBuildDriver = "rm Setup.hs"; });
+
+  # Apply patch from https://github.com/finnsson/template-helper/issues/12#issuecomment-611795375 to fix the build.
+  language-haskell-extract = appendPatch (doJailbreak super.language-haskell-extract) (pkgs.fetchpatch {
+    name = "language-haskell-extract-0.2.4.patch";
+    url = "https://gitlab.haskell.org/ghc/head.hackage/-/raw/e48738ee1be774507887a90a0d67ad1319456afc/patches/language-haskell-extract-0.2.4.patch?inline=false";
+    sha256 = "0rgzrq0513nlc1vw7nw4km4bcwn4ivxcgi33jly4a7n3c1r32v1f";
+  });
 
 }