51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
|
{ pkgs, haskellLib }:
|
||
|
|
||
|
let
|
||
|
inherit (pkgs) fetchpatch lib;
|
||
|
inherit (lib) throwIfNot versionOlder;
|
||
|
in
|
||
|
|
||
|
self: super: {
|
||
|
llvmPackages = lib.dontRecurseIntoAttrs self.ghc.llvmPackages;
|
||
|
|
||
|
# Disable GHC core libraries.
|
||
|
array = null;
|
||
|
base = null;
|
||
|
binary = null;
|
||
|
bytestring = null;
|
||
|
Cabal = null;
|
||
|
Cabal-syntax = null;
|
||
|
containers = null;
|
||
|
deepseq = null;
|
||
|
directory = null;
|
||
|
exceptions = null;
|
||
|
filepath = null;
|
||
|
ghc-bignum = 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;
|
||
|
system-cxx-std-lib = null;
|
||
|
template-haskell = null;
|
||
|
terminfo = null;
|
||
|
text = null;
|
||
|
time = null;
|
||
|
transformers = null;
|
||
|
unix = null;
|
||
|
# 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;
|
||
|
}
|