From 986e030e5e002c67c5e481db90233e5839af1a32 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Wed, 12 Jul 2023 09:47:31 +0800 Subject: [PATCH] thunderbirdPackages.thunderbird-115: init at 115.0 --- .../thunderbird/no-buildconfig-115.patch | 13 +++++++ .../mailreaders/thunderbird/packages.nix | 37 +++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 pkgs/applications/networking/mailreaders/thunderbird/no-buildconfig-115.patch diff --git a/pkgs/applications/networking/mailreaders/thunderbird/no-buildconfig-115.patch b/pkgs/applications/networking/mailreaders/thunderbird/no-buildconfig-115.patch new file mode 100644 index 000000000000..f386ee5a5d7f --- /dev/null +++ b/pkgs/applications/networking/mailreaders/thunderbird/no-buildconfig-115.patch @@ -0,0 +1,13 @@ +Remove about:buildconfig. If used as-is, it would add unnecessary runtime dependencies. +--- a/comm/mail/base/jar.mn ++++ b/comm/mail/base/jar.mn +@@ -120,9 +120,6 @@ + % override chrome://mozapps/content/profile/profileDowngrade.js chrome://messenger/content/profileDowngrade.js + % override chrome://mozapps/content/profile/profileDowngrade.xhtml chrome://messenger/content/profileDowngrade.xhtml + +-* content/messenger/buildconfig.html (content/buildconfig.html) +-% override chrome://global/content/buildconfig.html chrome://messenger/content/buildconfig.html +- + comm.jar: + % content communicator %content/communicator/ + content/communicator/contentAreaClick.js (content/contentAreaClick.js) diff --git a/pkgs/applications/networking/mailreaders/thunderbird/packages.nix b/pkgs/applications/networking/mailreaders/thunderbird/packages.nix index 5f081c86a13e..3d951a2b4e13 100644 --- a/pkgs/applications/networking/mailreaders/thunderbird/packages.nix +++ b/pkgs/applications/networking/mailreaders/thunderbird/packages.nix @@ -39,4 +39,41 @@ rec { pgoSupport = false; # console.warn: feeds: "downloadFeed: network connection unavailable" }; + + thunderbird-115 = (buildMozillaMach rec { + pname = "thunderbird"; + version = "115.0"; + application = "comm/mail"; + applicationName = "Mozilla Thunderbird"; + binaryName = pname; + src = fetchurl { + url = "mirror://mozilla/thunderbird/releases/${version}/source/thunderbird-${version}.source.tar.xz"; + sha512 = "2370a8e0b5ad2bc71bcb787cc93d31e5bf91bee9a4126c8677210e05936a726938b5fcff9b83c2ef1f509c1cadaa58638ba2399682308f32326a054496ea7a23"; + }; + extraPatches = [ + # The file to be patched is different from firefox's `no-buildconfig-ffx90.patch`. + ./no-buildconfig-115.patch + ]; + + meta = with lib; { + changelog = "https://www.thunderbird.net/en-US/thunderbird/${version}/releasenotes/"; + description = "A full-featured e-mail client"; + homepage = "https://thunderbird.net/"; + maintainers = with maintainers; [ eelco lovesegfault pierron vcunat ]; + platforms = platforms.unix; + badPlatforms = platforms.darwin; + broken = stdenv.buildPlatform.is32bit; # since Firefox 60, build on 32-bit platforms fails with "out of memory". + # not in `badPlatforms` because cross-compilation on 64-bit machine might work. + license = licenses.mpl20; + }; + updateScript = callPackage ./update.nix { + attrPath = "thunderbird-unwrapped"; + versionPrefix = "115"; + }; + }).override { + geolocationSupport = false; + webrtcSupport = false; + + pgoSupport = false; # console.warn: feeds: "downloadFeed: network connection unavailable" + }; }