From ca00529f59e420ddcf3f6d8873d5c4193eee1e64 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Wed, 25 Feb 2026 12:42:21 +0100 Subject: [PATCH] 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. --- .../haskell-modules/configuration-ghc-9.14.x.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-ghc-9.14.x.nix b/pkgs/development/haskell-modules/configuration-ghc-9.14.x.nix index e9356e8bbdb6..96ab4639e6d6 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-9.14.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-9.14.x.nix @@ -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);