From 9312c4398cf365f8f7eed71bb54dbbffb81b2db7 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 icu77 switch --- .../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 f31b0a5f3971..9799f2fcfb8c 100644 --- a/pkgs/applications/networking/browsers/firefox/common.nix +++ b/pkgs/applications/networking/browsers/firefox/common.nix @@ -76,7 +76,7 @@ in gnum4, gtk3, icu73, - icu77, + icu77, # 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 662547f917f2..ef37195b69e2 100644 --- a/pkgs/applications/networking/mailreaders/thunderbird/packages.nix +++ b/pkgs/applications/networking/mailreaders/thunderbird/packages.nix @@ -5,23 +5,28 @@ callPackage, fetchurl, icu73, + icu77, 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; + icu77' = patchICU icu77; common = { @@ -52,6 +57,7 @@ let extraPassthru = { icu73 = icu73'; + icu77 = icu77'; }; meta = with lib; { @@ -78,6 +84,7 @@ let pgoSupport = false; # console.warn: feeds: "downloadFeed: network connection unavailable" icu73 = icu73'; + icu77 = icu77'; }; in