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
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
# Disable GHC core libraries.
|
2020-04-24 23:36:52 +00:00
|
|
|
array = null;
|
|
|
|
base = null;
|
|
|
|
binary = null;
|
|
|
|
bytestring = null;
|
|
|
|
Cabal = null;
|
2022-04-15 01:41:22 +00:00
|
|
|
Cabal-syntax = null;
|
2020-04-24 23:36:52 +00:00
|
|
|
containers = null;
|
|
|
|
deepseq = null;
|
|
|
|
directory = null;
|
2022-04-15 01:41:22 +00:00
|
|
|
exceptions = null;
|
2020-04-24 23:36:52 +00:00
|
|
|
filepath = null;
|
2022-04-15 01:41:22 +00:00
|
|
|
ghc-bignum = null;
|
2020-04-24 23:36:52 +00:00
|
|
|
ghc-boot = null;
|
|
|
|
ghc-boot-th = null;
|
|
|
|
ghc-compact = null;
|
|
|
|
ghc-heap = null;
|
|
|
|
ghc-prim = null;
|
2022-04-15 01:41:22 +00:00
|
|
|
ghci = null;
|
2020-04-24 23:36:52 +00:00
|
|
|
haskeline = null;
|
|
|
|
hpc = null;
|
|
|
|
integer-gmp = null;
|
|
|
|
libiserv = null;
|
|
|
|
mtl = null;
|
|
|
|
parsec = null;
|
|
|
|
pretty = null;
|
|
|
|
process = null;
|
|
|
|
rts = null;
|
|
|
|
stm = null;
|
2024-01-02 11:29:13 +00:00
|
|
|
system-cxx-std-lib = null;
|
2020-04-24 23:36:52 +00:00
|
|
|
template-haskell = null;
|
2022-08-12 12:06:08 +00:00
|
|
|
# GHC only builds terminfo if it is a native compiler
|
2024-01-02 11:29:13 +00:00
|
|
|
terminfo = if pkgs.stdenv.hostPlatform == pkgs.stdenv.buildPlatform then null else doDistribute self.terminfo_0_4_1_6;
|
2020-04-24 23:36:52 +00:00
|
|
|
text = null;
|
|
|
|
time = null;
|
|
|
|
transformers = null;
|
|
|
|
unix = null;
|
2023-02-02 18:25:31 +00:00
|
|
|
xhtml = null;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
# HLS
|
|
|
|
# https://haskell-language-server.readthedocs.io/en/latest/support/plugin-support.html
|
|
|
|
haskell-language-server = super.haskell-language-server.override {
|
|
|
|
hls-class-plugin = null;
|
|
|
|
hls-floskell-plugin = null;
|
|
|
|
hls-fourmolu-plugin = null;
|
|
|
|
hls-gadt-plugin = null;
|
|
|
|
hls-hlint-plugin = null;
|
|
|
|
hls-ormolu-plugin = null;
|
|
|
|
hls-refactor-plugin = null;
|
|
|
|
hls-rename-plugin = null;
|
|
|
|
hls-retrie-plugin = null;
|
|
|
|
hls-splice-plugin = null;
|
|
|
|
hls-stylish-haskell-plugin = null;
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
# Version upgrades
|
|
|
|
alex = doDistribute self.alex_3_4_0_1;
|
|
|
|
some = doDistribute self.some_1_0_6;
|
|
|
|
tagged = doDistribute self.tagged_0_8_8;
|
|
|
|
th-abstraction = doDistribute self.th-abstraction_0_6_0_0;
|
|
|
|
hspec-core = doDistribute self.hspec-core_2_11_7;
|
|
|
|
hspec-meta = doDistribute self.hspec-meta_2_11_7;
|
|
|
|
hspec-discover = doDistribute self.hspec-discover_2_11_7;
|
|
|
|
hspec = doDistribute self.hspec_2_11_7;
|
|
|
|
hspec-expectations = doDistribute self.hspec-expectations_0_8_4;
|
|
|
|
bifunctors = doDistribute self.bifunctors_5_6_1;
|
|
|
|
free = doDistribute self.free_5_2;
|
|
|
|
semigroupoids = doDistribute self.semigroupoids_6_0_0_1;
|
|
|
|
doctest = doDistribute self.doctest_0_22_2;
|
|
|
|
ghc-lib-parser = doDistribute self.ghc-lib-parser_9_8_1_20231121;
|
|
|
|
ghc-lib-parser-ex = doDistribute self.ghc-lib-parser-ex_9_8_0_0;
|
|
|
|
ghc-lib = doDistribute self.ghc-lib_9_8_1_20231121;
|
|
|
|
megaparsec = doDistribute self.megaparsec_9_6_1;
|
|
|
|
tasty-hspec = doDistribute self.tasty-hspec_1_2_0_4;
|
|
|
|
hedgehog = doDistribute self.hedgehog_1_4;
|
|
|
|
rebase = doDistribute self.rebase_1_20_2;
|
|
|
|
rerebase = doDistribute self.rerebase_1_20_2;
|
|
|
|
aeson = doDistribute self.aeson_2_2_1_0;
|
|
|
|
aeson-pretty = doDistribute self.aeson-pretty_0_8_10;
|
|
|
|
attoparsec-aeson = doDistribute self.attoparsec-aeson_2_2_0_1;
|
|
|
|
ormolu = doDistribute self.ormolu_0_7_3_0;
|
|
|
|
fourmolu = doDistribute (dontCheck self.fourmolu_0_14_1_0);
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
# Jailbreaks
|
|
|
|
commutative-semigroups = doJailbreak super.commutative-semigroups; # base < 4.19
|
|
|
|
ghc-trace-events = doJailbreak super.ghc-trace-events; # text < 2.1, bytestring < 0.12, base < 4.19
|
|
|
|
primitive-unlifted = doJailbreak super.primitive-unlifted; # bytestring < 0.12
|
|
|
|
newtype-generics = doJailbreak super.newtype-generics; # base < 4.19
|
|
|
|
hw-prim = doJailbreak super.hw-prim; # doctest < 0.22, ghc-prim < 0.11, hedgehog < 1.4
|
|
|
|
hw-fingertree = doJailbreak super.hw-fingertree; # deepseq <1.5, doctest < 0.22, hedgehog < 1.4
|
|
|
|
# Too strict bound on base, believe it or not.
|
|
|
|
# https://github.com/judah/terminfo/pull/55#issuecomment-1876894232
|
|
|
|
terminfo_0_4_1_6 = doJailbreak super.terminfo_0_4_1_6;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
# Test suite issues
|
|
|
|
unordered-containers = dontCheck super.unordered-containers; # ChasingBottoms doesn't support base 4.20
|
|
|
|
lifted-base = dontCheck super.lifted-base; # doesn't compile with transformers == 0.6.*
|
|
|
|
# https://github.com/wz1000/HieDb/issues/64
|
|
|
|
hiedb = overrideCabal (drv: {
|
|
|
|
testFlags = drv.testFlags or [ ] ++ [
|
|
|
|
"--match" "!/hiedb/Command line/point-info/correctly prints type signatures/"
|
|
|
|
];
|
|
|
|
}) super.hiedb;
|
|
|
|
|
|
|
|
# Unbroken due to hspec* upgrades
|
|
|
|
hspec-api = doDistribute (unmarkBroken super.hspec-api);
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|