From 48ea35d0b83b59727893d421ff00a63b41fd2103 Mon Sep 17 00:00:00 2001 From: sterni Date: Sun, 26 Jul 2026 16:13:39 +0200 Subject: [PATCH] haskellPackages.text-icu: apply patch for time rendering test See https://github.com/haskell/text-icu/issues/108. --- .../haskell-modules/configuration-common.nix | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index f911e528c6a1..37301f905f54 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -1714,14 +1714,17 @@ with haskellLib; shh = doJailbreak super.shh; shh-extras = doJailbreak super.shh-extras; - # Disable test cases that were broken by insignificant changes in icu 76 - # https://github.com/haskell/text-icu/issues/108 - text-icu = overrideCabal (drv: { - testFlags = drv.testFlags or [ ] ++ [ - "-t" - "!Test cases" - ]; - }) super.text-icu; + text-icu = lib.pipe super.text-icu [ + (appendPatches [ + # Fix time rendering test with ICU >= 76 + # https://github.com/haskell/text-icu/issues/108 + (pkgs.fetchpatch { + name = "text-icu-time-tests-icu-76.patch"; + url = "https://github.com/haskell/text-icu/commit/921287b296ff781051c7bff45bb9adb04ee3a6a7.patch"; + hash = "sha256-gi6ilqgN/1PLGdVNxXE217J+c0reaitLWND8X6VsV1U="; + }) + ]) + ]; hercules-ci-agent = self.generateOptparseApplicativeCompletions [ "hercules-ci-agent"