Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
234 lines
7.4 KiB
Nix
234 lines
7.4 KiB
Nix
{ pkgs, haskellLib }:
|
|
|
|
self: super:
|
|
|
|
with haskellLib;
|
|
|
|
let
|
|
inherit (pkgs) lib;
|
|
|
|
warnAfterVersion =
|
|
ver: pkg:
|
|
lib.warnIf (lib.versionOlder ver
|
|
super.${pkg.pname}.version
|
|
) "override for haskell.packages.ghc96.${pkg.pname} may no longer be needed" pkg;
|
|
|
|
in
|
|
|
|
{
|
|
# 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 is not built if GHC is a cross compiler
|
|
terminfo =
|
|
if pkgs.stdenv.hostPlatform == pkgs.stdenv.buildPlatform then
|
|
null
|
|
else
|
|
doDistribute self.terminfo_0_4_1_7;
|
|
text = null;
|
|
time = null;
|
|
transformers = null;
|
|
unix = null;
|
|
xhtml = null;
|
|
|
|
# Becomes a core package in GHC >= 9.8
|
|
semaphore-compat = doDistribute self.semaphore-compat_1_0_0;
|
|
|
|
# Becomes a core package in GHC >= 9.10
|
|
os-string = doDistribute self.os-string_2_0_8;
|
|
|
|
# Becomes a core package in GHC >= 9.10, no release compatible with GHC < 9.10 is available
|
|
ghc-internal = null;
|
|
# Become core packages in GHC >= 9.10, but aren't uploaded to Hackage
|
|
ghc-toolchain = null;
|
|
ghc-platform = null;
|
|
|
|
# Needs base-orphans for GHC < 9.8 / base < 4.19
|
|
some = addBuildDepend self.base-orphans super.some;
|
|
|
|
#
|
|
# Version deviations from Stackage LTS
|
|
#
|
|
|
|
# Too strict upper bound on template-haskell
|
|
# https://github.com/mokus0/th-extras/pull/21
|
|
th-extras = doJailbreak super.th-extras;
|
|
|
|
# not in Stackage, needs to match ghc-lib
|
|
# since expression is generated for 9.8, ghc-lib dep needs to be added manually
|
|
ghc-tags = doDistribute (addBuildDepends [ self.ghc-lib ] self.ghc-tags_1_8);
|
|
|
|
#
|
|
# Too strict bounds without upstream fix
|
|
#
|
|
|
|
# Forbids transformers >= 0.6
|
|
quickcheck-classes-base = doJailbreak super.quickcheck-classes-base;
|
|
# https://github.com/Gabriella439/Haskell-Break-Library/pull/3
|
|
break = doJailbreak super.break;
|
|
# Forbids mtl >= 2.3
|
|
ChasingBottoms = doJailbreak super.ChasingBottoms;
|
|
# Forbids base >= 4.18
|
|
cabal-install-solver = doJailbreak super.cabal-install-solver;
|
|
cabal-install = doJailbreak super.cabal-install;
|
|
|
|
# Forbids base >= 4.18, fix proposed: https://github.com/sjakobi/newtype-generics/pull/25
|
|
newtype-generics = warnAfterVersion "0.6.2" (doJailbreak super.newtype-generics);
|
|
|
|
# Jailbreaks for servant <0.20
|
|
servant-lucid = doJailbreak super.servant-lucid;
|
|
|
|
stm-containers = dontCheck super.stm-containers;
|
|
regex-tdfa = dontCheck super.regex-tdfa;
|
|
hiedb = dontCheck super.hiedb;
|
|
# https://github.com/kowainik/relude/issues/436
|
|
relude = dontCheck (doJailbreak super.relude);
|
|
|
|
inherit (pkgs.lib.mapAttrs (_: doJailbreak) super)
|
|
ghc-trace-events
|
|
gi-cairo-connector # mtl <2.3
|
|
ghc-prof # base <4.18
|
|
env-guard # doctest <0.21
|
|
package-version # doctest <0.21, tasty-hedgehog <1.4
|
|
;
|
|
|
|
# Pending text-2.0 support https://github.com/gtk2hs/gtk2hs/issues/327
|
|
gtk = doJailbreak super.gtk;
|
|
|
|
# 2023-12-23: It needs this to build under ghc-9.6.3.
|
|
# A factor of 100 is insufficient, 200 seems seems to work.
|
|
hip = appendConfigureFlag "--ghc-options=-fsimpl-tick-factor=200" super.hip;
|
|
|
|
# This can be removed once https://github.com/typeclasses/ascii-predicates/pull/1
|
|
# is merged and in a release that's being tracked.
|
|
ascii-predicates = appendPatch (pkgs.fetchpatch {
|
|
url = "https://github.com/typeclasses/ascii-predicates/commit/2e6d9ed45987a8566f3a77eedf7836055c076d1a.patch";
|
|
name = "ascii-predicates-pull-1.patch";
|
|
relative = "ascii-predicates";
|
|
sha256 = "sha256-4JguQFZNRQpjZThLrAo13jNeypvLfqFp6o7c1bnkmZo=";
|
|
}) super.ascii-predicates;
|
|
|
|
# This can be removed once https://github.com/typeclasses/ascii-numbers/pull/1
|
|
# is merged and in a release that's being tracked.
|
|
ascii-numbers = appendPatch (pkgs.fetchpatch {
|
|
url = "https://github.com/typeclasses/ascii-numbers/commit/e9474ad91bc997891f1a46afd5d0bdf9b9f7d768.patch";
|
|
name = "ascii-numbers-pull-1.patch";
|
|
relative = "ascii-numbers";
|
|
sha256 = "sha256-buw1UeW57CFefEfqdDUraSyQ+H/NvCZOv6WF2ORiYQg=";
|
|
}) super.ascii-numbers;
|
|
|
|
# Tests require nothunks < 0.3 (conflicting with Stackage) for GHC < 9.8
|
|
aeson = dontCheck super.aeson;
|
|
|
|
# Apply patch from PR with mtl-2.3 fix.
|
|
ConfigFile = overrideCabal (drv: {
|
|
editedCabalFile = null;
|
|
buildDepends = drv.buildDepends or [ ] ++ [ self.HUnit ];
|
|
patches = [
|
|
(pkgs.fetchpatch {
|
|
# https://github.com/jgoerzen/configfile/pull/12
|
|
name = "ConfigFile-pr-12.patch";
|
|
url = "https://github.com/jgoerzen/configfile/compare/d0a2e654be0b73eadbf2a50661d00574ad7b6f87...83ee30b43f74d2b6781269072cf5ed0f0e00012f.patch";
|
|
sha256 = "sha256-b7u9GiIAd2xpOrM0MfILHNb6Nt7070lNRIadn2l3DfQ=";
|
|
})
|
|
];
|
|
}) super.ConfigFile;
|
|
|
|
# https://github.com/NixOS/nixpkgs/pull/367998#issuecomment-2598941240
|
|
libtorch-ffi-helper = unmarkBroken (doDistribute super.libtorch-ffi-helper);
|
|
|
|
# Compatibility with core libs of GHC 9.6
|
|
# Jailbreak to lift bound on time
|
|
kqueue = doJailbreak (
|
|
appendPatches [
|
|
(pkgs.fetchpatch {
|
|
name = "kqueue-ghc-9.6.patch";
|
|
url = "https://github.com/hesselink/kqueue/pull/10/commits/a2735e807d761410e776482ec04515d9cf76a7f5.patch";
|
|
sha256 = "18rilz4nrwcmlvll3acjx2lp7s129pviggb8fy3hdb0z34ls5j84";
|
|
excludes = [ ".gitignore" ];
|
|
})
|
|
] super.kqueue
|
|
);
|
|
|
|
# This runs into the following GHC bug currently affecting 9.6.* and 9.8.* as
|
|
# well as 9.10.1: https://gitlab.haskell.org/ghc/ghc/-/issues/24432
|
|
inherit
|
|
(lib.mapAttrs (
|
|
_:
|
|
overrideCabal (drv: {
|
|
badPlatforms = drv.badPlatforms or [ ] ++ [ "aarch64-linux" ];
|
|
})
|
|
) super)
|
|
mueval
|
|
lambdabot
|
|
lambdabot-haskell-plugins
|
|
;
|
|
|
|
singletons-base = dontCheck super.singletons-base;
|
|
|
|
# A given major version of ghc-exactprint only supports one version of GHC.
|
|
ghc-exactprint = addBuildDepend self.extra super.ghc-exactprint_1_7_1_0;
|
|
|
|
ghc-lib-parser = doDistribute self.ghc-lib-parser_9_8_5_20250214;
|
|
ghc-lib-parser-ex = doDistribute self.ghc-lib-parser-ex_9_8_0_2;
|
|
haddock-library = doJailbreak super.haddock-library;
|
|
apply-refact = addBuildDepend self.data-default-class super.apply-refact;
|
|
inherit
|
|
(
|
|
let
|
|
hls_overlay = lself: lsuper: {
|
|
Cabal-syntax = lself.Cabal-syntax_3_10_3_0;
|
|
Cabal = lself.Cabal_3_10_3_0;
|
|
extensions = dontCheck (doJailbreak lself.extensions_0_1_0_1);
|
|
};
|
|
in
|
|
lib.mapAttrs (_: pkg: doDistribute (pkg.overrideScope hls_overlay)) {
|
|
haskell-language-server = allowInconsistentDependencies (
|
|
addBuildDepends [ self.retrie self.floskell ] super.haskell-language-server
|
|
);
|
|
ormolu = doDistribute self.ormolu_0_7_4_0;
|
|
fourmolu = doDistribute (dontCheck (doJailbreak self.fourmolu_0_15_0_0));
|
|
hlint = doDistribute self.hlint_3_8;
|
|
stylish-haskell = self.stylish-haskell_0_14_6_0;
|
|
retrie = doJailbreak (unmarkBroken super.retrie);
|
|
floskell = doJailbreak super.floskell;
|
|
}
|
|
)
|
|
retrie
|
|
floskell
|
|
haskell-language-server
|
|
fourmolu
|
|
ormolu
|
|
hlint
|
|
stylish-haskell
|
|
;
|
|
}
|