thunderbird-91: init at 91.0
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
{ stdenv, lib, callPackage, fetchurl }:
|
||||
|
||||
callPackage (import ../../../browsers/firefox/common.nix rec {
|
||||
pname = "thunderbird";
|
||||
ffversion = "91.0";
|
||||
application = "comm/mail";
|
||||
binaryName = pname;
|
||||
src = fetchurl {
|
||||
url = "mirror://mozilla/thunderbird/releases/${ffversion}/source/thunderbird-${ffversion}.source.tar.xz";
|
||||
sha512 = "f3fcaff97b37ef41850895e44fbd2f42b0f1cb982542861bef89ef7ee606c6332296d61f666106be9455078933a2844c46bf243b71cc4364d9ff457d9c808a7a";
|
||||
};
|
||||
patches = [
|
||||
./no-buildconfig-90.patch
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
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-91";
|
||||
versionKey = "ffversion";
|
||||
};
|
||||
}) {
|
||||
webrtcSupport = false;
|
||||
geolocationSupport = false;
|
||||
}
|
||||
@@ -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
|
||||
@@ -119,9 +119,6 @@ messenger.jar:
|
||||
% 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
|
||||
-
|
||||
# L10n resources and overrides.
|
||||
% override chrome://mozapps/locale/profile/profileDowngrade.dtd chrome://messenger/locale/profileDowngrade.dtd
|
||||
% override chrome://global/locale/netError.dtd chrome://messenger/locale/netError.dtd
|
||||
@@ -0,0 +1,7 @@
|
||||
{ callPackage
|
||||
, ...
|
||||
}@args:
|
||||
|
||||
callPackage ../../../browsers/firefox/update.nix ({
|
||||
baseUrl = "http://archive.mozilla.org/pub/thunderbird/releases/";
|
||||
} // (builtins.removeAttrs args ["callPackage"]))
|
||||
@@ -0,0 +1,23 @@
|
||||
{ lib, wrapFirefox, gpgme, gnupg }:
|
||||
|
||||
browser:
|
||||
args:
|
||||
|
||||
(wrapFirefox browser ({
|
||||
firefoxLibName = "thunderbird";
|
||||
} // args))
|
||||
|
||||
.overrideAttrs (old: {
|
||||
# Thunderbird's native GPG support does not yet support smartcards.
|
||||
# The official upstream recommendation is to configure fall back to gnupg
|
||||
# using the Thunderbird config `mail.openpgp.allow_external_gnupg`
|
||||
# and GPG keys set up; instructions with pictures at:
|
||||
# https://anweshadas.in/how-to-use-yubikey-or-any-gpg-smartcard-in-thunderbird-78/
|
||||
# For that to work out of the box, it requires `gnupg` on PATH and
|
||||
# `gpgme` in `LD_LIBRARY_PATH`; we do this below.
|
||||
buildCommand = old.buildCommand + ''
|
||||
wrapProgram $out/bin/thunderbird \
|
||||
--prefix LD_LIBRARY_PATH ':' "${lib.makeLibraryPath [ gpgme ]}" \
|
||||
--prefix PATH ':' "${lib.makeBinPath [ gnupg ]}"
|
||||
'';
|
||||
})
|
||||
Reference in New Issue
Block a user