From 3e2d7a6d3712518034c93e7b368ce9854fdea073 Mon Sep 17 00:00:00 2001 From: Alexandre Esteves Date: Mon, 21 Sep 2026 18:18:18 +0100 Subject: [PATCH 1/2] haskellPackages.polysemy: apply patch to support doctest 0.25 --- pkgs/development/haskell-modules/configuration-common.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 5ff7bb190e7f..19449a754dda 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -2677,6 +2677,14 @@ with haskellLib; # https://github.com/fused-effects/fused-effects/issues/473 fused-effects = doJailbreak super.fused-effects; + # https://github.com/polysemy-research/polysemy/pull/495 + polysemy = appendPatch (fetchpatch { + name = "support-doctest-0.25.patch"; + url = "https://github.com/polysemy-research/polysemy/commit/26235c0bf8bae18de44901836b9412d7c2c9603e.patch"; + hash = "sha256-RZh+jJWB7uYL2jmCErcPZ3uT3Wm4wpeLnzmkopLDEAQ"; + includes = [ "polysemy.cabal" ]; + }) super.polysemy; + html-charset = dontCheck super.html-charset; # bytestring <0.11.0, optparse-applicative <0.13.0 From 34a0be6bb39a973f47cb95ad6477fa761fec02cb Mon Sep 17 00:00:00 2001 From: Alexandre Esteves Date: Mon, 21 Sep 2026 18:18:45 +0100 Subject: [PATCH 2/2] haskellPackages.polysemy-plugin: apply patch to support doctest 0.25 --- .../development/haskell-modules/configuration-common.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 19449a754dda..668008cc73c0 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -2685,6 +2685,15 @@ with haskellLib; includes = [ "polysemy.cabal" ]; }) super.polysemy; + # https://github.com/polysemy-research/polysemy/pull/495 + polysemy-plugin = appendPatch (fetchpatch { + name = "support-doctest-0.25.patch"; + url = "https://github.com/polysemy-research/polysemy/commit/c2c17a41f8284bb8fdf71b240a75f23af426e661.patch"; + hash = "sha256-RSVfEUr6LyciT+T00ARff/3hND3neDhkGtYURHzRBzM"; + includes = [ "polysemy-plugin.cabal" ]; + relative = "polysemy-plugin"; + }) super.polysemy-plugin; + html-charset = dontCheck super.html-charset; # bytestring <0.11.0, optparse-applicative <0.13.0