Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / haskell-modules / configuration-ghc-8.6.x.nix
blob7cd010e22d9c3471207483bf4bdfad4953e15355
1 { pkgs, haskellLib }:
3 with haskellLib;
5 let
6   inherit (pkgs.stdenv.hostPlatform) isDarwin;
7 in
9 self: super: {
11   llvmPackages = pkgs.lib.dontRecurseIntoAttrs self.ghc.llvmPackages;
13   # Disable GHC 8.6.x core libraries.
14   array = null;
15   base = null;
16   binary = null;
17   bytestring = null;
18   Cabal = null;
19   containers = null;
20   deepseq = null;
21   directory = null;
22   filepath = null;
23   ghc-boot = null;
24   ghc-boot-th = null;
25   ghc-compact = null;
26   ghc-heap = null;
27   ghc-prim = null;
28   ghci = null;
29   haskeline = null;
30   hpc = null;
31   integer-gmp = null;
32   libiserv = null;
33   mtl = null;
34   parsec = null;
35   pretty = null;
36   process = null;
37   rts = null;
38   stm = null;
39   template-haskell = null;
40   # GHC only builds terminfo if it is a native compiler
41   terminfo = if pkgs.stdenv.hostPlatform == pkgs.stdenv.buildPlatform then null else self.terminfo_0_4_1_6;
42   text = null;
43   time = null;
44   transformers = null;
45   unix = null;
46   # GHC only bundles the xhtml library if haddock is enabled, check if this is
47   # still the case when updating: https://gitlab.haskell.org/ghc/ghc/-/blob/0198841877f6f04269d6050892b98b5c3807ce4c/ghc.mk#L463
48   xhtml = if self.ghc.hasHaddock or true then null else self.xhtml_3000_3_0_0;
50   # Need the Cabal-syntax-3.6.0.0 fake package for Cabal < 3.8 to allow callPackage and the constraint solver to work
51   Cabal-syntax = self.Cabal-syntax_3_6_0_0;
53   # Needs Cabal 3.0.x.
54   jailbreak-cabal = super.jailbreak-cabal.overrideScope (cself: _: { Cabal = cself.Cabal_3_2_1_0; });
56   # https://github.com/tibbe/unordered-containers/issues/214
57   unordered-containers = dontCheck super.unordered-containers;
59   # Test suite does not compile.
60   data-clist = doJailbreak super.data-clist;  # won't cope with QuickCheck 2.12.x
61   dates = doJailbreak super.dates; # base >=4.9 && <4.12
62   Diff = dontCheck super.Diff;
63   equivalence = dontCheck super.equivalence; # test suite doesn't compile https://github.com/pa-ba/equivalence/issues/5
64   HaTeX = doJailbreak super.HaTeX; # containers >=0.4 && <0.6 is too tight; https://github.com/Daniel-Diaz/HaTeX/issues/126
65   hpc-coveralls = doJailbreak super.hpc-coveralls; # https://github.com/guillaume-nargeot/hpc-coveralls/issues/82
66   http-api-data = doJailbreak super.http-api-data;
67   persistent-sqlite = dontCheck super.persistent-sqlite;
68   system-fileio = dontCheck super.system-fileio;  # avoid dependency on broken "patience"
69   unicode-transforms = dontCheck super.unicode-transforms;
70   wl-pprint-extras = doJailbreak super.wl-pprint-extras; # containers >=0.4 && <0.6 is too tight; https://github.com/ekmett/wl-pprint-extras/issues/17
71   RSA = dontCheck super.RSA; # https://github.com/GaloisInc/RSA/issues/14
72   github = dontCheck super.github; # hspec upper bound exceeded; https://github.com/phadej/github/pull/341
73   binary-orphans = dontCheck super.binary-orphans; # tasty upper bound exceeded; https://github.com/phadej/binary-orphans/commit/8ce857226595dd520236ff4c51fa1a45d8387b33
74   rebase = doJailbreak super.rebase; # time ==1.9.* is too low
76   # https://github.com/jgm/skylighting/issues/55
77   skylighting-core = dontCheck super.skylighting-core;
79   # cabal2nix needs the latest version of Cabal, and the one
80   # hackage-db uses must match, so take the latest
81   cabal2nix = super.cabal2nix.overrideScope (self: super: { Cabal = self.Cabal_3_2_1_0; });
83   # cabal2spec needs a recent version of Cabal
84   cabal2spec = super.cabal2spec.overrideScope (self: super: { Cabal = self.Cabal_3_2_1_0; });
86   # https://github.com/pikajude/stylish-cabal/issues/12
87   stylish-cabal = doDistribute (markUnbroken (super.stylish-cabal.override { haddock-library = self.haddock-library_1_7_0; }));
88   haddock-library_1_7_0 = dontCheck super.haddock-library_1_7_0;
90   # ghc versions prior to 8.8.x needs additional dependency to compile successfully.
91   ghc-lib-parser-ex = addBuildDepend self.ghc-lib-parser super.ghc-lib-parser-ex;
93   # This became a core library in ghc 8.10., so we don’t have an "exception" attribute anymore.
94   exceptions = super.exceptions_0_10_4;
96   # Older compilers need the latest ghc-lib to build this package.
97   hls-hlint-plugin = addBuildDepend self.ghc-lib super.hls-hlint-plugin;
99   # vector 0.12.2 indroduced doctest checks that don’t work on older compilers
100   vector = dontCheck super.vector;
102   mmorph = super.mmorph_1_1_3;
104   # https://github.com/haskellari/time-compat/issues/23
105   time-compat = dontCheck super.time-compat;
107   mime-string = disableOptimization super.mime-string;
109   # https://github.com/fpco/inline-c/issues/127 (recommend to upgrade to Nixpkgs GHC >=9.0)
110   inline-c-cpp = (if isDarwin then dontCheck else x: x) super.inline-c-cpp;