2020-04-24 23:36:52 +00:00
|
|
|
|
{ pkgs, haskellLib }:
|
|
|
|
|
|
|
|
|
|
with haskellLib;
|
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
|
let
|
|
|
|
|
inherit (pkgs.stdenv.hostPlatform) isDarwin;
|
|
|
|
|
in
|
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
|
self: super: {
|
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
|
llvmPackages = pkgs.lib.dontRecurseIntoAttrs self.ghc.llvmPackages;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
# Disable GHC 8.6.x core libraries.
|
|
|
|
|
array = null;
|
|
|
|
|
base = null;
|
|
|
|
|
binary = null;
|
|
|
|
|
bytestring = null;
|
|
|
|
|
Cabal = null;
|
|
|
|
|
containers = null;
|
|
|
|
|
deepseq = null;
|
|
|
|
|
directory = null;
|
|
|
|
|
filepath = null;
|
|
|
|
|
ghc-boot = null;
|
|
|
|
|
ghc-boot-th = null;
|
|
|
|
|
ghc-compact = null;
|
|
|
|
|
ghc-heap = null;
|
|
|
|
|
ghc-prim = null;
|
|
|
|
|
ghci = null;
|
|
|
|
|
haskeline = null;
|
|
|
|
|
hpc = null;
|
|
|
|
|
integer-gmp = null;
|
|
|
|
|
libiserv = null;
|
|
|
|
|
mtl = null;
|
|
|
|
|
parsec = null;
|
|
|
|
|
pretty = null;
|
|
|
|
|
process = null;
|
|
|
|
|
rts = null;
|
|
|
|
|
stm = null;
|
|
|
|
|
template-haskell = null;
|
2022-08-12 12:06:08 +00:00
|
|
|
|
# GHC only builds terminfo if it is a native compiler
|
2023-03-15 16:39:30 +00:00
|
|
|
|
terminfo = if pkgs.stdenv.hostPlatform == pkgs.stdenv.buildPlatform then null else self.terminfo_0_4_1_6;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
text = null;
|
|
|
|
|
time = null;
|
|
|
|
|
transformers = null;
|
|
|
|
|
unix = null;
|
2022-05-18 14:49:53 +00:00
|
|
|
|
# GHC only bundles the xhtml library if haddock is enabled, check if this is
|
|
|
|
|
# still the case when updating: https://gitlab.haskell.org/ghc/ghc/-/blob/0198841877f6f04269d6050892b98b5c3807ce4c/ghc.mk#L463
|
2023-08-22 20:05:09 +00:00
|
|
|
|
xhtml = if self.ghc.hasHaddock or true then null else self.xhtml_3000_3_0_0;
|
|
|
|
|
|
|
|
|
|
# Need the Cabal-syntax-3.6.0.0 fake package for Cabal < 3.8 to allow callPackage and the constraint solver to work
|
|
|
|
|
Cabal-syntax = self.Cabal-syntax_3_6_0_0;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
# Needs Cabal 3.0.x.
|
2023-08-22 20:05:09 +00:00
|
|
|
|
jailbreak-cabal = super.jailbreak-cabal.overrideScope (cself: _: { Cabal = cself.Cabal_3_2_1_0; });
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
# https://github.com/tibbe/unordered-containers/issues/214
|
|
|
|
|
unordered-containers = dontCheck super.unordered-containers;
|
|
|
|
|
|
|
|
|
|
# Test suite does not compile.
|
|
|
|
|
data-clist = doJailbreak super.data-clist; # won't cope with QuickCheck 2.12.x
|
|
|
|
|
dates = doJailbreak super.dates; # base >=4.9 && <4.12
|
|
|
|
|
Diff = dontCheck super.Diff;
|
|
|
|
|
equivalence = dontCheck super.equivalence; # test suite doesn't compile https://github.com/pa-ba/equivalence/issues/5
|
|
|
|
|
HaTeX = doJailbreak super.HaTeX; # containers >=0.4 && <0.6 is too tight; https://github.com/Daniel-Diaz/HaTeX/issues/126
|
|
|
|
|
hpc-coveralls = doJailbreak super.hpc-coveralls; # https://github.com/guillaume-nargeot/hpc-coveralls/issues/82
|
|
|
|
|
http-api-data = doJailbreak super.http-api-data;
|
|
|
|
|
persistent-sqlite = dontCheck super.persistent-sqlite;
|
|
|
|
|
system-fileio = dontCheck super.system-fileio; # avoid dependency on broken "patience"
|
|
|
|
|
unicode-transforms = dontCheck super.unicode-transforms;
|
|
|
|
|
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
|
|
|
|
|
RSA = dontCheck super.RSA; # https://github.com/GaloisInc/RSA/issues/14
|
|
|
|
|
github = dontCheck super.github; # hspec upper bound exceeded; https://github.com/phadej/github/pull/341
|
|
|
|
|
binary-orphans = dontCheck super.binary-orphans; # tasty upper bound exceeded; https://github.com/phadej/binary-orphans/commit/8ce857226595dd520236ff4c51fa1a45d8387b33
|
2020-08-20 17:08:02 +00:00
|
|
|
|
rebase = doJailbreak super.rebase; # time ==1.9.* is too low
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
# https://github.com/jgm/skylighting/issues/55
|
|
|
|
|
skylighting-core = dontCheck super.skylighting-core;
|
|
|
|
|
|
|
|
|
|
# cabal2nix needs the latest version of Cabal, and the one
|
|
|
|
|
# hackage-db uses must match, so take the latest
|
2020-11-03 02:18:15 +00:00
|
|
|
|
cabal2nix = super.cabal2nix.overrideScope (self: super: { Cabal = self.Cabal_3_2_1_0; });
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
# cabal2spec needs a recent version of Cabal
|
2020-11-03 02:18:15 +00:00
|
|
|
|
cabal2spec = super.cabal2spec.overrideScope (self: super: { Cabal = self.Cabal_3_2_1_0; });
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
# https://github.com/pikajude/stylish-cabal/issues/12
|
|
|
|
|
stylish-cabal = doDistribute (markUnbroken (super.stylish-cabal.override { haddock-library = self.haddock-library_1_7_0; }));
|
|
|
|
|
haddock-library_1_7_0 = dontCheck super.haddock-library_1_7_0;
|
|
|
|
|
|
|
|
|
|
# ghc versions prior to 8.8.x needs additional dependency to compile successfully.
|
2021-12-06 16:07:01 +00:00
|
|
|
|
ghc-lib-parser-ex = addBuildDepend self.ghc-lib-parser super.ghc-lib-parser-ex;
|
2020-11-21 19:51:51 +00:00
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
|
# This became a core library in ghc 8.10., so we don’t have an "exception" attribute anymore.
|
2020-11-21 19:51:51 +00:00
|
|
|
|
exceptions = super.exceptions_0_10_4;
|
2021-02-13 14:23:35 +00:00
|
|
|
|
|
|
|
|
|
# Older compilers need the latest ghc-lib to build this package.
|
2021-12-06 16:07:01 +00:00
|
|
|
|
hls-hlint-plugin = addBuildDepend self.ghc-lib super.hls-hlint-plugin;
|
2021-02-13 14:23:35 +00:00
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
|
# vector 0.12.2 indroduced doctest checks that don’t work on older compilers
|
2021-02-13 14:23:35 +00:00
|
|
|
|
vector = dontCheck super.vector;
|
|
|
|
|
|
|
|
|
|
mmorph = super.mmorph_1_1_3;
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
|
|
# https://github.com/haskellari/time-compat/issues/23
|
|
|
|
|
time-compat = dontCheck super.time-compat;
|
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
|
mime-string = disableOptimization super.mime-string;
|
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
|
# https://github.com/fpco/inline-c/issues/127 (recommend to upgrade to Nixpkgs GHC >=9.0)
|
|
|
|
|
inline-c-cpp = (if isDarwin then dontCheck else x: x) super.inline-c-cpp;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
}
|