From 10100a97c8964e82b30f180fda41ade8e6f69e41 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 17 Apr 2020 22:50:00 +0200 Subject: ghc-8.10.x: add plenty of overrides to fix builds --- .../haskell-modules/configuration-ghc-8.10.x.nix | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix') 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 f9e9e189a9a5..74ca5c9342f7 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"; + }); } -- cgit 1.4.1