haskell.packages.ghc914.{serialise,cborg}: jailbreak

As documented in the issue, the upper bounds are just too strict. For
serialise I've applied a patch that removes support for GHC 8.6 since
this removes a conditional in the cabal file that prevents
jailbreak-cabal from removing the time constraint.
This commit is contained in:
sternenseemann
2026-02-25 13:08:47 +01:00
parent cd4dfb1d68
commit ca00529f59
@@ -103,6 +103,21 @@ with haskellLib;
text-iso8601 = doJailbreak super.text-iso8601;
aeson = doJailbreak super.aeson;
# https://github.com/well-typed/cborg/issues/373
cborg = doJailbreak super.cborg;
serialise = doJailbreak (
appendPatches [
# This removes support for older versions of time (think GHC 8.6) and, in doing so,
# drops a Cabal flag that prevents jailbreak from working
(pkgs.fetchpatch {
name = "serialise-no-old-time.patch";
url = "https://github.com/well-typed/cborg/commit/308afc2795062f847171463958e5e1bbd9c03381.patch";
hash = "sha256-Gutu9c+houcwAvq2Z+ZQUQbNK+u+OCJRZfKBtx8/V4c=";
relative = "serialise";
})
] super.serialise
);
# https://github.com/sjakobi/newtype-generics/pull/28/files
newtype-generics = warnAfterVersion "0.6.2" (doJailbreak super.newtype-generics);