2019-01-23 21:56:15 +00:00
|
|
|
##
|
|
|
|
## Caveat: a copy of configuration-ghc-8.6.x.nix with minor changes:
|
|
|
|
##
|
|
|
|
## 1. "8.7" strings
|
|
|
|
## 2. llvm 6
|
|
|
|
## 3. disabled library update: parallel
|
|
|
|
##
|
2017-08-01 16:44:08 +00:00
|
|
|
{ pkgs, haskellLib }:
|
2015-01-07 19:31:32 +00:00
|
|
|
|
2017-08-01 16:44:08 +00:00
|
|
|
with haskellLib;
|
2015-01-07 19:31:32 +00:00
|
|
|
|
2021-12-24 20:12:56 +00:00
|
|
|
let
|
|
|
|
inherit (pkgs.stdenv.hostPlatform) isDarwin;
|
|
|
|
in
|
|
|
|
|
2015-01-07 19:31:32 +00:00
|
|
|
self: super: {
|
|
|
|
|
2021-11-23 15:11:37 +00:00
|
|
|
llvmPackages = pkgs.lib.dontRecurseIntoAttrs self.ghc.llvmPackages;
|
2015-03-09 19:11:23 +00:00
|
|
|
|
2022-04-08 13:13:52 +00:00
|
|
|
# Disable GHC core libraries.
|
2015-01-07 19:31:32 +00:00
|
|
|
array = null;
|
|
|
|
base = null;
|
|
|
|
binary = null;
|
|
|
|
bytestring = null;
|
|
|
|
Cabal = null;
|
2022-04-08 13:13:52 +00:00
|
|
|
Cabal-syntax = null;
|
2015-01-07 19:31:32 +00:00
|
|
|
containers = null;
|
|
|
|
deepseq = null;
|
|
|
|
directory = null;
|
2022-04-08 13:13:52 +00:00
|
|
|
exceptions = null;
|
2015-01-07 19:31:32 +00:00
|
|
|
filepath = null;
|
2022-04-08 13:13:52 +00:00
|
|
|
ghc-bignum = null;
|
2017-09-01 13:48:53 +00:00
|
|
|
ghc-boot = null;
|
|
|
|
ghc-boot-th = null;
|
|
|
|
ghc-compact = null;
|
2019-01-23 21:56:15 +00:00
|
|
|
ghc-heap = null;
|
|
|
|
ghc-prim = null;
|
2022-04-08 13:13:52 +00:00
|
|
|
ghci = null;
|
2015-01-07 19:31:32 +00:00
|
|
|
haskeline = null;
|
|
|
|
hpc = null;
|
|
|
|
integer-gmp = null;
|
2019-01-23 21:56:15 +00:00
|
|
|
libiserv = null;
|
2018-07-09 23:23:50 +00:00
|
|
|
mtl = null;
|
|
|
|
parsec = null;
|
2015-01-07 19:31:32 +00:00
|
|
|
pretty = null;
|
|
|
|
process = null;
|
|
|
|
rts = null;
|
2018-07-09 23:23:50 +00:00
|
|
|
stm = null;
|
2015-01-07 19:31:32 +00:00
|
|
|
template-haskell = null;
|
|
|
|
terminfo = null;
|
2018-07-09 23:23:50 +00:00
|
|
|
text = null;
|
2015-01-07 19:31:32 +00:00
|
|
|
time = null;
|
|
|
|
transformers = null;
|
|
|
|
unix = null;
|
2022-04-29 13:27:02 +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
|
|
|
|
xhtml = if self.ghc.hasHaddock or true then null else self.xhtml_3000_2_2_1;
|
2015-01-07 19:31:32 +00:00
|
|
|
|
2019-01-23 21:56:15 +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;
|
|
|
|
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
|
|
|
|
monad-par = dontCheck super.monad-par; # https://github.com/simonmar/monad-par/issues/66
|
|
|
|
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
|
|
|
|
|
|
|
|
# https://github.com/jgm/skylighting/issues/55
|
|
|
|
skylighting-core = dontCheck super.skylighting-core;
|
|
|
|
|
|
|
|
# Break out of "yaml >=0.10.4.0 && <0.11": https://github.com/commercialhaskell/stack/issues/4485
|
|
|
|
stack = doJailbreak super.stack;
|
|
|
|
|
2021-12-24 20:12:56 +00:00
|
|
|
# https://github.com/fpco/inline-c/pull/131
|
|
|
|
# and/or https://gitlab.haskell.org/ghc/ghc/-/merge_requests/7739
|
|
|
|
inline-c-cpp =
|
|
|
|
(if isDarwin then appendConfigureFlags ["--ghc-option=-fcompact-unwind"] else x: x)
|
|
|
|
super.inline-c-cpp;
|
2015-01-10 10:02:37 +00:00
|
|
|
}
|