From e8c60e89e37ec978ea458845344b046f2de76ad4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Fri, 16 May 2025 08:06:52 +0200 Subject: [PATCH] thunderbird: fix calendar again after icu76 switch (cherry picked from commit 9312c4398cf365f8f7eed71bb54dbbffb81b2db7) --- .../networking/browsers/firefox/common.nix | 2 +- .../mailreaders/thunderbird/packages.nix | 31 ++++++++++++------- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/pkgs/applications/networking/browsers/firefox/common.nix b/pkgs/applications/networking/browsers/firefox/common.nix index f04c01c8de30..0d40b5fe8d46 100644 --- a/pkgs/applications/networking/browsers/firefox/common.nix +++ b/pkgs/applications/networking/browsers/firefox/common.nix @@ -65,7 +65,7 @@ in gnum4, gtk3, icu73, - icu76, + icu76, # if you fiddle with the icu parameters, please check Thunderbird's overrides libGL, libGLU, libevent, diff --git a/pkgs/applications/networking/mailreaders/thunderbird/packages.nix b/pkgs/applications/networking/mailreaders/thunderbird/packages.nix index c72fc1e034c2..f67dda1a1e13 100644 --- a/pkgs/applications/networking/mailreaders/thunderbird/packages.nix +++ b/pkgs/applications/networking/mailreaders/thunderbird/packages.nix @@ -5,23 +5,28 @@ callPackage, fetchurl, icu73, + icu76, fetchpatch2, config, }: let - icu73' = icu73.overrideAttrs (attrs: { - # standardize vtzone output - # Work around ICU-22132 https://unicode-org.atlassian.net/browse/ICU-22132 - # https://bugzilla.mozilla.org/show_bug.cgi?id=1790071 - patches = attrs.patches ++ [ - (fetchpatch2 { - url = "https://hg.mozilla.org/mozilla-central/raw-file/fb8582f80c558000436922fb37572adcd4efeafc/intl/icu-patches/bug-1790071-ICU-22132-standardize-vtzone-output.diff"; - stripLen = 3; - hash = "sha256-MGNnWix+kDNtLuACrrONDNcFxzjlUcLhesxwVZFzPAM="; - }) - ]; - }); + patchICU = + icu: + icu.overrideAttrs (attrs: { + # standardize vtzone output + # Work around ICU-22132 https://unicode-org.atlassian.net/browse/ICU-22132 + # https://bugzilla.mozilla.org/show_bug.cgi?id=1790071 + patches = attrs.patches ++ [ + (fetchpatch2 { + url = "https://hg.mozilla.org/mozilla-central/raw-file/fb8582f80c558000436922fb37572adcd4efeafc/intl/icu-patches/bug-1790071-ICU-22132-standardize-vtzone-output.diff"; + stripLen = 3; + hash = "sha256-MGNnWix+kDNtLuACrrONDNcFxzjlUcLhesxwVZFzPAM="; + }) + ]; + }); + icu73' = patchICU icu73; + icu76' = patchICU icu76; common = { @@ -46,6 +51,7 @@ let extraPassthru = { icu73 = icu73'; + icu76 = icu76'; }; meta = with lib; { @@ -73,6 +79,7 @@ let pgoSupport = false; # console.warn: feeds: "downloadFeed: network connection unavailable" icu73 = icu73'; + icu76 = icu76'; }; in