aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/applications/networking/mailreaders/thunderbird/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/networking/mailreaders/thunderbird/default.nix')
-rw-r--r--nixpkgs/pkgs/applications/networking/mailreaders/thunderbird/default.nix35
1 files changed, 14 insertions, 21 deletions
diff --git a/nixpkgs/pkgs/applications/networking/mailreaders/thunderbird/default.nix b/nixpkgs/pkgs/applications/networking/mailreaders/thunderbird/default.nix
index ee8d36b421a..e6b279fd35c 100644
--- a/nixpkgs/pkgs/applications/networking/mailreaders/thunderbird/default.nix
+++ b/nixpkgs/pkgs/applications/networking/mailreaders/thunderbird/default.nix
@@ -18,7 +18,6 @@
, lib
, libGL
, libGLU
-, libIDL
, libevent
, libjpeg
, libnotify
@@ -43,6 +42,7 @@
, rustc
, sqlite
, stdenv
+, systemd
, unzip
, which
, writeScript
@@ -60,25 +60,22 @@
, waylandSupport ? true
, libxkbcommon, calendarSupport ? true
-, # If you want the resulting program to call itself "Thunderbird" instead
-# of "Earlybird" or whatever, enable this option. However, those
-# binaries may not be distributed without permission from the
-# Mozilla Foundation, see
-# http://www.mozilla.org/foundation/trademarks/.
-enableOfficialBranding ? false
+# Use official trademarked branding. Permission obtained at:
+# https://github.com/NixOS/nixpkgs/pull/94880#issuecomment-675907971
+, enableOfficialBranding ? true
}:
assert waylandSupport -> gtk3Support == true;
stdenv.mkDerivation rec {
pname = "thunderbird";
- version = "68.8.1";
+ version = "78.2.2";
src = fetchurl {
url =
"mirror://mozilla/thunderbird/releases/${version}/source/thunderbird-${version}.source.tar.xz";
sha512 =
- "2zq65qhrg8xsz75yywcijdjbkndn79w73v5vyahiyyibc8lfjphz0zaihk67ja82fpnxlnsfvy45s8x5l42kcbb0wibkjy7m55bd6h7";
+ "2cbpyx9jn23kc289z8ikzx3035g5z6p076izvld50mj3kqc0v4n3igih3rv1lsdwysik8c0ax5w3pa037lnrp6ridgbnix34gxr4nw6";
};
nativeBuildInputs = [
@@ -112,7 +109,6 @@ stdenv.mkDerivation rec {
jemalloc
libGL
libGLU
- libIDL
libevent
libjpeg
libnotify
@@ -176,9 +172,10 @@ stdenv.mkDerivation rec {
# included we need to look in a few places.
# TODO: generalize this process for other use-cases.
- BINDGEN_CFLAGS="$(< ${stdenv.cc}/nix-support/libc-cflags) \
+ BINDGEN_CFLAGS="$(< ${stdenv.cc}/nix-support/libc-crt1-cflags) \
+ $(< ${stdenv.cc}/nix-support/libc-cflags) \
$(< ${stdenv.cc}/nix-support/cc-cflags) \
- ${stdenv.cc.default_cxx_stdlib_compile} \
+ $(< ${stdenv.cc}/nix-support/libcxx-cxxflags) \
${
lib.optionalString stdenv.cc.isClang
"-idirafter ${stdenv.cc.cc}/lib/clang/${
@@ -207,14 +204,12 @@ stdenv.mkDerivation rec {
in [
"--enable-application=comm/mail"
- "--with-system-bz2"
"--with-system-icu"
"--with-system-jpeg"
"--with-system-libevent"
"--with-system-nspr"
"--with-system-nss"
"--with-system-png" # needs APNG support
- "--with-system-icu"
"--with-system-zlib"
"--with-system-webp"
"--with-system-libvpx"
@@ -224,12 +219,9 @@ stdenv.mkDerivation rec {
"--enable-default-toolkit=${toolkitValue}"
"--enable-js-shell"
"--enable-necko-wifi"
- "--enable-startup-notification"
"--enable-system-ffi"
"--enable-system-pixman"
- "--enable-system-sqlite"
- "--disable-gconf"
"--disable-tests"
"--disable-updater"
"--enable-jemalloc"
@@ -305,11 +297,11 @@ stdenv.mkDerivation rec {
)
'';
- # FIXME: This can probably be removed as soon as we package a
- # Thunderbird >=71.0 since XUL shouldn't be anymore (in use)?
+ # FIXME: The XUL portion of this can probably be removed as soon as we
+ # package a Thunderbird >=71.0 since XUL shouldn't be anymore (in use)?
postFixup = ''
local xul="$out/lib/thunderbird/libxul.so"
- patchelf --set-rpath "${libnotify}/lib:$(patchelf --print-rpath $xul)" $xul
+ patchelf --set-rpath "${libnotify}/lib:${lib.getLib systemd}/lib:$(patchelf --print-rpath $xul)" $xul
'';
doInstallCheck = true;
@@ -322,7 +314,7 @@ stdenv.mkDerivation rec {
];
passthru.updateScript = import ./../../browsers/firefox/update.nix {
- attrPath = "thunderbird";
+ attrPath = "thunderbird-78";
baseUrl = "http://archive.mozilla.org/pub/thunderbird/releases/";
inherit writeScript lib common-updater-scripts xidel coreutils gnused
gnugrep curl runtimeShell;
@@ -337,5 +329,6 @@ stdenv.mkDerivation rec {
pierron
];
platforms = platforms.linux;
+ license = licenses.mpl20;
};
}