thunderbird: rewrite
This is a large scale rework of the package, here's a change summary:
* Organized inputs (1/line, except conditionals)
* Introduced alsaSupport, pulseaudioSupport, waylandSupport
* enableGTK3 -> gtk3Support
* enableCalendar -> calendarSupport
* Organized buildInputs, nativeBuildInputs (1/line)
* Corrected native/buildInputs separation
* Ported over fixes/changes from Firefox
* Enabled sound, webp, vpx, rust-SIMD, necko-wifi
* Removed manual wrapping
* Lifted makeDesktopItem out of string section, into Nix
* Correctly set bindgen options
* Added lovesegfault as maintainer
* New url which uses https
This is non-authoritative, look at the diff for further info.
2019-12-07 08:47:31 +00:00
|
|
|
{ autoconf213
|
|
|
|
, bzip2
|
|
|
|
, cargo
|
|
|
|
, common-updater-scripts
|
|
|
|
, coreutils
|
|
|
|
, curl
|
|
|
|
, dbus
|
|
|
|
, dbus-glib
|
2020-09-21 10:51:25 +01:00
|
|
|
, fetchpatch
|
thunderbird: rewrite
This is a large scale rework of the package, here's a change summary:
* Organized inputs (1/line, except conditionals)
* Introduced alsaSupport, pulseaudioSupport, waylandSupport
* enableGTK3 -> gtk3Support
* enableCalendar -> calendarSupport
* Organized buildInputs, nativeBuildInputs (1/line)
* Corrected native/buildInputs separation
* Ported over fixes/changes from Firefox
* Enabled sound, webp, vpx, rust-SIMD, necko-wifi
* Removed manual wrapping
* Lifted makeDesktopItem out of string section, into Nix
* Correctly set bindgen options
* Added lovesegfault as maintainer
* New url which uses https
This is non-authoritative, look at the diff for further info.
2019-12-07 08:47:31 +00:00
|
|
|
, fetchurl
|
|
|
|
, file
|
|
|
|
, fontconfig
|
|
|
|
, freetype
|
|
|
|
, glib
|
|
|
|
, gnugrep
|
|
|
|
, gnused
|
|
|
|
, icu
|
|
|
|
, jemalloc
|
|
|
|
, lib
|
|
|
|
, libGL
|
|
|
|
, libGLU
|
|
|
|
, libevent
|
|
|
|
, libjpeg
|
|
|
|
, libnotify
|
|
|
|
, libpng
|
|
|
|
, libstartup_notification
|
|
|
|
, libvpx
|
|
|
|
, libwebp
|
|
|
|
, llvmPackages
|
|
|
|
, m4
|
|
|
|
, makeDesktopItem
|
|
|
|
, nasm
|
|
|
|
, nodejs
|
|
|
|
, nspr
|
|
|
|
, nss
|
|
|
|
, pango
|
|
|
|
, perl
|
|
|
|
, pkgconfig
|
|
|
|
, python2
|
|
|
|
, python3
|
2019-08-29 12:56:24 +01:00
|
|
|
, runtimeShell
|
thunderbird: rewrite
This is a large scale rework of the package, here's a change summary:
* Organized inputs (1/line, except conditionals)
* Introduced alsaSupport, pulseaudioSupport, waylandSupport
* enableGTK3 -> gtk3Support
* enableCalendar -> calendarSupport
* Organized buildInputs, nativeBuildInputs (1/line)
* Corrected native/buildInputs separation
* Ported over fixes/changes from Firefox
* Enabled sound, webp, vpx, rust-SIMD, necko-wifi
* Removed manual wrapping
* Lifted makeDesktopItem out of string section, into Nix
* Correctly set bindgen options
* Added lovesegfault as maintainer
* New url which uses https
This is non-authoritative, look at the diff for further info.
2019-12-07 08:47:31 +00:00
|
|
|
, rust-cbindgen
|
|
|
|
, rustc
|
|
|
|
, sqlite
|
|
|
|
, stdenv
|
2020-06-13 23:59:38 +01:00
|
|
|
, systemd
|
thunderbird: rewrite
This is a large scale rework of the package, here's a change summary:
* Organized inputs (1/line, except conditionals)
* Introduced alsaSupport, pulseaudioSupport, waylandSupport
* enableGTK3 -> gtk3Support
* enableCalendar -> calendarSupport
* Organized buildInputs, nativeBuildInputs (1/line)
* Corrected native/buildInputs separation
* Ported over fixes/changes from Firefox
* Enabled sound, webp, vpx, rust-SIMD, necko-wifi
* Removed manual wrapping
* Lifted makeDesktopItem out of string section, into Nix
* Correctly set bindgen options
* Added lovesegfault as maintainer
* New url which uses https
This is non-authoritative, look at the diff for further info.
2019-12-07 08:47:31 +00:00
|
|
|
, unzip
|
|
|
|
, which
|
|
|
|
, writeScript
|
|
|
|
, xidel
|
|
|
|
, xorg
|
|
|
|
, yasm
|
|
|
|
, zip
|
|
|
|
, zlib
|
|
|
|
|
2014-07-22 21:18:24 +01:00
|
|
|
, debugBuild ? false
|
thunderbird: rewrite
This is a large scale rework of the package, here's a change summary:
* Organized inputs (1/line, except conditionals)
* Introduced alsaSupport, pulseaudioSupport, waylandSupport
* enableGTK3 -> gtk3Support
* enableCalendar -> calendarSupport
* Organized buildInputs, nativeBuildInputs (1/line)
* Corrected native/buildInputs separation
* Ported over fixes/changes from Firefox
* Enabled sound, webp, vpx, rust-SIMD, necko-wifi
* Removed manual wrapping
* Lifted makeDesktopItem out of string section, into Nix
* Correctly set bindgen options
* Added lovesegfault as maintainer
* New url which uses https
This is non-authoritative, look at the diff for further info.
2019-12-07 08:47:31 +00:00
|
|
|
|
|
|
|
, alsaSupport ? stdenv.isLinux, alsaLib
|
|
|
|
, pulseaudioSupport ? stdenv.isLinux, libpulseaudio
|
|
|
|
, gtk3Support ? true, gtk2, gtk3, wrapGAppsHook
|
|
|
|
, waylandSupport ? true
|
|
|
|
, libxkbcommon, calendarSupport ? true
|
|
|
|
|
2020-08-19 18:49:16 +01:00
|
|
|
# Use official trademarked branding. Permission obtained at:
|
|
|
|
# https://github.com/NixOS/nixpkgs/pull/94880#issuecomment-675907971
|
|
|
|
, enableOfficialBranding ? true
|
2012-03-21 01:26:21 +00:00
|
|
|
}:
|
|
|
|
|
thunderbird: rewrite
This is a large scale rework of the package, here's a change summary:
* Organized inputs (1/line, except conditionals)
* Introduced alsaSupport, pulseaudioSupport, waylandSupport
* enableGTK3 -> gtk3Support
* enableCalendar -> calendarSupport
* Organized buildInputs, nativeBuildInputs (1/line)
* Corrected native/buildInputs separation
* Ported over fixes/changes from Firefox
* Enabled sound, webp, vpx, rust-SIMD, necko-wifi
* Removed manual wrapping
* Lifted makeDesktopItem out of string section, into Nix
* Correctly set bindgen options
* Added lovesegfault as maintainer
* New url which uses https
This is non-authoritative, look at the diff for further info.
2019-12-07 08:47:31 +00:00
|
|
|
assert waylandSupport -> gtk3Support == true;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "thunderbird";
|
2020-10-21 19:38:00 +01:00
|
|
|
version = "78.4.0";
|
2012-03-21 01:26:21 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
thunderbird: rewrite
This is a large scale rework of the package, here's a change summary:
* Organized inputs (1/line, except conditionals)
* Introduced alsaSupport, pulseaudioSupport, waylandSupport
* enableGTK3 -> gtk3Support
* enableCalendar -> calendarSupport
* Organized buildInputs, nativeBuildInputs (1/line)
* Corrected native/buildInputs separation
* Ported over fixes/changes from Firefox
* Enabled sound, webp, vpx, rust-SIMD, necko-wifi
* Removed manual wrapping
* Lifted makeDesktopItem out of string section, into Nix
* Correctly set bindgen options
* Added lovesegfault as maintainer
* New url which uses https
This is non-authoritative, look at the diff for further info.
2019-12-07 08:47:31 +00:00
|
|
|
url =
|
|
|
|
"mirror://mozilla/thunderbird/releases/${version}/source/thunderbird-${version}.source.tar.xz";
|
|
|
|
sha512 =
|
2020-10-21 19:38:00 +01:00
|
|
|
"04b6n3gsan0a5abh371ws3c3rry4dcb3c6rbqmcxkzrdjg2xr5vn6xhlg3dgl3l01p0hp1xqpckj8g5yb2dq2x07xgg1hnyhs9aadh5";
|
2012-03-21 01:26:21 +00:00
|
|
|
};
|
|
|
|
|
thunderbird: rewrite
This is a large scale rework of the package, here's a change summary:
* Organized inputs (1/line, except conditionals)
* Introduced alsaSupport, pulseaudioSupport, waylandSupport
* enableGTK3 -> gtk3Support
* enableCalendar -> calendarSupport
* Organized buildInputs, nativeBuildInputs (1/line)
* Corrected native/buildInputs separation
* Ported over fixes/changes from Firefox
* Enabled sound, webp, vpx, rust-SIMD, necko-wifi
* Removed manual wrapping
* Lifted makeDesktopItem out of string section, into Nix
* Correctly set bindgen options
* Added lovesegfault as maintainer
* New url which uses https
This is non-authoritative, look at the diff for further info.
2019-12-07 08:47:31 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoconf213
|
|
|
|
cargo
|
|
|
|
gnused
|
|
|
|
llvmPackages.llvm
|
|
|
|
m4
|
|
|
|
nasm
|
|
|
|
nodejs
|
|
|
|
perl
|
|
|
|
pkgconfig
|
|
|
|
python2
|
|
|
|
python3
|
|
|
|
rust-cbindgen
|
|
|
|
rustc
|
|
|
|
which
|
|
|
|
yasm
|
|
|
|
] ++ lib.optional gtk3Support wrapGAppsHook;
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
bzip2
|
|
|
|
dbus
|
|
|
|
dbus-glib
|
|
|
|
file
|
|
|
|
fontconfig
|
|
|
|
freetype
|
|
|
|
glib
|
|
|
|
gtk2
|
|
|
|
icu
|
|
|
|
jemalloc
|
|
|
|
libGL
|
|
|
|
libGLU
|
|
|
|
libevent
|
|
|
|
libjpeg
|
|
|
|
libnotify
|
|
|
|
libpng
|
|
|
|
libstartup_notification
|
|
|
|
libvpx
|
|
|
|
libwebp
|
|
|
|
nspr
|
|
|
|
nss
|
|
|
|
pango
|
|
|
|
perl
|
|
|
|
sqlite
|
|
|
|
unzip
|
|
|
|
xorg.libX11
|
|
|
|
xorg.libXScrnSaver
|
|
|
|
xorg.libXcursor
|
|
|
|
xorg.libXext
|
|
|
|
xorg.libXft
|
|
|
|
xorg.libXi
|
|
|
|
xorg.libXrender
|
|
|
|
xorg.libXt
|
|
|
|
xorg.pixman
|
|
|
|
xorg.xorgproto
|
|
|
|
zip
|
|
|
|
zlib
|
|
|
|
] ++ lib.optional alsaSupport alsaLib
|
|
|
|
++ lib.optional gtk3Support gtk3
|
|
|
|
++ lib.optional pulseaudioSupport libpulseaudio
|
|
|
|
++ lib.optional waylandSupport libxkbcommon;
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE =[
|
|
|
|
"-I${glib.dev}/include/gio-unix-2.0"
|
|
|
|
"-I${nss.dev}/include/nss"
|
|
|
|
];
|
2017-04-09 18:15:06 +01:00
|
|
|
|
2018-10-03 01:13:57 +01:00
|
|
|
patches = [
|
2019-01-30 14:16:37 +00:00
|
|
|
./no-buildconfig.patch
|
thunderbird: rewrite
This is a large scale rework of the package, here's a change summary:
* Organized inputs (1/line, except conditionals)
* Introduced alsaSupport, pulseaudioSupport, waylandSupport
* enableGTK3 -> gtk3Support
* enableCalendar -> calendarSupport
* Organized buildInputs, nativeBuildInputs (1/line)
* Corrected native/buildInputs separation
* Ported over fixes/changes from Firefox
* Enabled sound, webp, vpx, rust-SIMD, necko-wifi
* Removed manual wrapping
* Lifted makeDesktopItem out of string section, into Nix
* Correctly set bindgen options
* Added lovesegfault as maintainer
* New url which uses https
This is non-authoritative, look at the diff for further info.
2019-12-07 08:47:31 +00:00
|
|
|
];
|
2012-03-21 01:26:21 +00:00
|
|
|
|
thunderbird: rewrite
This is a large scale rework of the package, here's a change summary:
* Organized inputs (1/line, except conditionals)
* Introduced alsaSupport, pulseaudioSupport, waylandSupport
* enableGTK3 -> gtk3Support
* enableCalendar -> calendarSupport
* Organized buildInputs, nativeBuildInputs (1/line)
* Corrected native/buildInputs separation
* Ported over fixes/changes from Firefox
* Enabled sound, webp, vpx, rust-SIMD, necko-wifi
* Removed manual wrapping
* Lifted makeDesktopItem out of string section, into Nix
* Correctly set bindgen options
* Added lovesegfault as maintainer
* New url which uses https
This is non-authoritative, look at the diff for further info.
2019-12-07 08:47:31 +00:00
|
|
|
postPatch = ''
|
|
|
|
rm -rf obj-x86_64-pc-linux-gnu
|
|
|
|
'';
|
2015-05-21 13:00:42 +01:00
|
|
|
|
2019-11-05 00:14:00 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
thunderbird: rewrite
This is a large scale rework of the package, here's a change summary:
* Organized inputs (1/line, except conditionals)
* Introduced alsaSupport, pulseaudioSupport, waylandSupport
* enableGTK3 -> gtk3Support
* enableCalendar -> calendarSupport
* Organized buildInputs, nativeBuildInputs (1/line)
* Corrected native/buildInputs separation
* Ported over fixes/changes from Firefox
* Enabled sound, webp, vpx, rust-SIMD, necko-wifi
* Removed manual wrapping
* Lifted makeDesktopItem out of string section, into Nix
* Correctly set bindgen options
* Added lovesegfault as maintainer
* New url which uses https
This is non-authoritative, look at the diff for further info.
2019-12-07 08:47:31 +00:00
|
|
|
preConfigure = ''
|
|
|
|
# remove distributed configuration files
|
|
|
|
rm -f configure
|
|
|
|
rm -f js/src/configure
|
|
|
|
rm -f .mozconfig*
|
|
|
|
|
|
|
|
configureScript="$(realpath ./mach) configure"
|
|
|
|
# AS=as in the environment causes build failure https://bugzilla.mozilla.org/show_bug.cgi?id=1497286
|
|
|
|
unset AS
|
|
|
|
|
|
|
|
export MOZCONFIG=$(pwd)/mozconfig
|
|
|
|
|
|
|
|
# Set C flags for Rust's bindgen program. Unlike ordinary C
|
|
|
|
# compilation, bindgen does not invoke $CC directly. Instead it
|
|
|
|
# uses LLVM's libclang. To make sure all necessary flags are
|
|
|
|
# included we need to look in a few places.
|
|
|
|
# TODO: generalize this process for other use-cases.
|
|
|
|
|
2020-07-01 21:55:06 +01:00
|
|
|
BINDGEN_CFLAGS="$(< ${stdenv.cc}/nix-support/libc-crt1-cflags) \
|
|
|
|
$(< ${stdenv.cc}/nix-support/libc-cflags) \
|
thunderbird: rewrite
This is a large scale rework of the package, here's a change summary:
* Organized inputs (1/line, except conditionals)
* Introduced alsaSupport, pulseaudioSupport, waylandSupport
* enableGTK3 -> gtk3Support
* enableCalendar -> calendarSupport
* Organized buildInputs, nativeBuildInputs (1/line)
* Corrected native/buildInputs separation
* Ported over fixes/changes from Firefox
* Enabled sound, webp, vpx, rust-SIMD, necko-wifi
* Removed manual wrapping
* Lifted makeDesktopItem out of string section, into Nix
* Correctly set bindgen options
* Added lovesegfault as maintainer
* New url which uses https
This is non-authoritative, look at the diff for further info.
2019-12-07 08:47:31 +00:00
|
|
|
$(< ${stdenv.cc}/nix-support/cc-cflags) \
|
2020-04-14 01:44:43 +01:00
|
|
|
$(< ${stdenv.cc}/nix-support/libcxx-cxxflags) \
|
thunderbird: rewrite
This is a large scale rework of the package, here's a change summary:
* Organized inputs (1/line, except conditionals)
* Introduced alsaSupport, pulseaudioSupport, waylandSupport
* enableGTK3 -> gtk3Support
* enableCalendar -> calendarSupport
* Organized buildInputs, nativeBuildInputs (1/line)
* Corrected native/buildInputs separation
* Ported over fixes/changes from Firefox
* Enabled sound, webp, vpx, rust-SIMD, necko-wifi
* Removed manual wrapping
* Lifted makeDesktopItem out of string section, into Nix
* Correctly set bindgen options
* Added lovesegfault as maintainer
* New url which uses https
This is non-authoritative, look at the diff for further info.
2019-12-07 08:47:31 +00:00
|
|
|
${
|
|
|
|
lib.optionalString stdenv.cc.isClang
|
|
|
|
"-idirafter ${stdenv.cc.cc}/lib/clang/${
|
|
|
|
lib.getVersion stdenv.cc.cc
|
|
|
|
}/include"
|
|
|
|
} \
|
2017-04-16 08:57:02 +01:00
|
|
|
${
|
thunderbird: rewrite
This is a large scale rework of the package, here's a change summary:
* Organized inputs (1/line, except conditionals)
* Introduced alsaSupport, pulseaudioSupport, waylandSupport
* enableGTK3 -> gtk3Support
* enableCalendar -> calendarSupport
* Organized buildInputs, nativeBuildInputs (1/line)
* Corrected native/buildInputs separation
* Ported over fixes/changes from Firefox
* Enabled sound, webp, vpx, rust-SIMD, necko-wifi
* Removed manual wrapping
* Lifted makeDesktopItem out of string section, into Nix
* Correctly set bindgen options
* Added lovesegfault as maintainer
* New url which uses https
This is non-authoritative, look at the diff for further info.
2019-12-07 08:47:31 +00:00
|
|
|
lib.optionalString stdenv.cc.isGNU
|
|
|
|
"-isystem ${stdenv.cc.cc}/include/c++/${
|
|
|
|
lib.getVersion stdenv.cc.cc
|
|
|
|
} -isystem ${stdenv.cc.cc}/include/c++/${
|
|
|
|
lib.getVersion stdenv.cc.cc
|
2020-04-14 00:19:05 +01:00
|
|
|
}/${stdenv.hostPlatform.config}"
|
thunderbird: rewrite
This is a large scale rework of the package, here's a change summary:
* Organized inputs (1/line, except conditionals)
* Introduced alsaSupport, pulseaudioSupport, waylandSupport
* enableGTK3 -> gtk3Support
* enableCalendar -> calendarSupport
* Organized buildInputs, nativeBuildInputs (1/line)
* Corrected native/buildInputs separation
* Ported over fixes/changes from Firefox
* Enabled sound, webp, vpx, rust-SIMD, necko-wifi
* Removed manual wrapping
* Lifted makeDesktopItem out of string section, into Nix
* Correctly set bindgen options
* Added lovesegfault as maintainer
* New url which uses https
This is non-authoritative, look at the diff for further info.
2019-12-07 08:47:31 +00:00
|
|
|
} \
|
|
|
|
$NIX_CFLAGS_COMPILE"
|
2017-04-09 18:15:06 +01:00
|
|
|
|
thunderbird: rewrite
This is a large scale rework of the package, here's a change summary:
* Organized inputs (1/line, except conditionals)
* Introduced alsaSupport, pulseaudioSupport, waylandSupport
* enableGTK3 -> gtk3Support
* enableCalendar -> calendarSupport
* Organized buildInputs, nativeBuildInputs (1/line)
* Corrected native/buildInputs separation
* Ported over fixes/changes from Firefox
* Enabled sound, webp, vpx, rust-SIMD, necko-wifi
* Removed manual wrapping
* Lifted makeDesktopItem out of string section, into Nix
* Correctly set bindgen options
* Added lovesegfault as maintainer
* New url which uses https
This is non-authoritative, look at the diff for further info.
2019-12-07 08:47:31 +00:00
|
|
|
echo "ac_add_options BINDGEN_CFLAGS='$BINDGEN_CFLAGS'" >> $MOZCONFIG
|
|
|
|
'';
|
2016-10-13 13:26:29 +01:00
|
|
|
|
thunderbird: rewrite
This is a large scale rework of the package, here's a change summary:
* Organized inputs (1/line, except conditionals)
* Introduced alsaSupport, pulseaudioSupport, waylandSupport
* enableGTK3 -> gtk3Support
* enableCalendar -> calendarSupport
* Organized buildInputs, nativeBuildInputs (1/line)
* Corrected native/buildInputs separation
* Ported over fixes/changes from Firefox
* Enabled sound, webp, vpx, rust-SIMD, necko-wifi
* Removed manual wrapping
* Lifted makeDesktopItem out of string section, into Nix
* Correctly set bindgen options
* Added lovesegfault as maintainer
* New url which uses https
This is non-authoritative, look at the diff for further info.
2019-12-07 08:47:31 +00:00
|
|
|
configureFlags = let
|
|
|
|
toolkitSlug = if gtk3Support then
|
|
|
|
"3${lib.optionalString waylandSupport "-wayland"}"
|
|
|
|
else
|
|
|
|
"2";
|
|
|
|
toolkitValue = "cairo-gtk${toolkitSlug}";
|
|
|
|
in [
|
|
|
|
"--enable-application=comm/mail"
|
2018-10-08 15:30:19 +01:00
|
|
|
|
thunderbird: rewrite
This is a large scale rework of the package, here's a change summary:
* Organized inputs (1/line, except conditionals)
* Introduced alsaSupport, pulseaudioSupport, waylandSupport
* enableGTK3 -> gtk3Support
* enableCalendar -> calendarSupport
* Organized buildInputs, nativeBuildInputs (1/line)
* Corrected native/buildInputs separation
* Ported over fixes/changes from Firefox
* Enabled sound, webp, vpx, rust-SIMD, necko-wifi
* Removed manual wrapping
* Lifted makeDesktopItem out of string section, into Nix
* Correctly set bindgen options
* Added lovesegfault as maintainer
* New url which uses https
This is non-authoritative, look at the diff for further info.
2019-12-07 08:47:31 +00:00
|
|
|
"--with-system-icu"
|
|
|
|
"--with-system-jpeg"
|
|
|
|
"--with-system-libevent"
|
|
|
|
"--with-system-nspr"
|
|
|
|
"--with-system-nss"
|
|
|
|
"--with-system-png" # needs APNG support
|
|
|
|
"--with-system-zlib"
|
|
|
|
"--with-system-webp"
|
|
|
|
"--with-system-libvpx"
|
|
|
|
|
|
|
|
"--enable-rust-simd"
|
|
|
|
"--enable-crashreporter"
|
|
|
|
"--enable-default-toolkit=${toolkitValue}"
|
|
|
|
"--enable-js-shell"
|
|
|
|
"--enable-necko-wifi"
|
|
|
|
"--enable-system-ffi"
|
|
|
|
"--enable-system-pixman"
|
|
|
|
|
|
|
|
"--disable-tests"
|
|
|
|
"--disable-updater"
|
|
|
|
"--enable-jemalloc"
|
|
|
|
] ++ (if debugBuild then [
|
|
|
|
"--enable-debug"
|
|
|
|
"--enable-profiling"
|
|
|
|
] else [
|
|
|
|
"--disable-debug"
|
|
|
|
"--enable-release"
|
|
|
|
"--disable-debug-symbols"
|
|
|
|
"--enable-optimize"
|
|
|
|
"--enable-strip"
|
|
|
|
]) ++ lib.optionals (!stdenv.hostPlatform.isi686) [
|
|
|
|
# on i686-linux: --with-libclang-path is not available in this configuration
|
|
|
|
"--with-libclang-path=${llvmPackages.libclang}/lib"
|
|
|
|
"--with-clang-path=${llvmPackages.clang}/bin/clang"
|
|
|
|
] ++ lib.optional alsaSupport "--enable-alsa"
|
|
|
|
++ lib.optional calendarSupport "--enable-calendar"
|
|
|
|
++ lib.optional enableOfficialBranding "--enable-official-branding"
|
|
|
|
++ lib.optional pulseaudioSupport "--enable-pulseaudio";
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
postConfigure = ''
|
|
|
|
cd obj-*
|
|
|
|
'';
|
|
|
|
|
|
|
|
makeFlags = lib.optionals enableOfficialBranding [
|
|
|
|
"MOZILLA_OFFICIAL=1"
|
|
|
|
"BUILD_OFFICIAL=1"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
postInstall = let
|
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
categories = lib.concatStringsSep ";" [ "Application" "Network" ];
|
|
|
|
desktopName = "Thunderbird";
|
|
|
|
genericName = "Mail Reader";
|
|
|
|
name = "thunderbird";
|
|
|
|
exec = "thunderbird %U";
|
|
|
|
icon = "$out/lib/thunderbird/chrome/icons/default/default256.png";
|
|
|
|
mimeType = lib.concatStringsSep ";" [
|
|
|
|
# Email
|
|
|
|
"x-scheme-handler/mailto"
|
|
|
|
"message/rfc822"
|
|
|
|
# Feeds
|
|
|
|
"x-scheme-handler/feed"
|
|
|
|
"application/rss+xml"
|
|
|
|
"application/x-extension-rss"
|
|
|
|
# Newsgroups
|
|
|
|
"x-scheme-handler/news"
|
|
|
|
"x-scheme-handler/snews"
|
|
|
|
"x-scheme-handler/nntp"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
in ''
|
|
|
|
# TODO: Move to a dev output?
|
|
|
|
rm -rf $out/include $out/lib/thunderbird-devel-* $out/share/idl
|
|
|
|
|
|
|
|
${desktopItem.buildCommand}
|
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
# Needed to find Mozilla runtime
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
--argv0 "$out/bin/thunderbird"
|
|
|
|
--set MOZ_APP_LAUNCHER thunderbird
|
|
|
|
# https://github.com/NixOS/nixpkgs/pull/61980
|
|
|
|
--set SNAP_NAME "thunderbird"
|
|
|
|
--set MOZ_LEGACY_PROFILES 1
|
|
|
|
--set MOZ_ALLOW_DOWNGRADE 1
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2020-06-13 23:59:38 +01:00
|
|
|
# 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)?
|
thunderbird: rewrite
This is a large scale rework of the package, here's a change summary:
* Organized inputs (1/line, except conditionals)
* Introduced alsaSupport, pulseaudioSupport, waylandSupport
* enableGTK3 -> gtk3Support
* enableCalendar -> calendarSupport
* Organized buildInputs, nativeBuildInputs (1/line)
* Corrected native/buildInputs separation
* Ported over fixes/changes from Firefox
* Enabled sound, webp, vpx, rust-SIMD, necko-wifi
* Removed manual wrapping
* Lifted makeDesktopItem out of string section, into Nix
* Correctly set bindgen options
* Added lovesegfault as maintainer
* New url which uses https
This is non-authoritative, look at the diff for further info.
2019-12-07 08:47:31 +00:00
|
|
|
postFixup = ''
|
|
|
|
local xul="$out/lib/thunderbird/libxul.so"
|
2020-08-12 19:14:08 +01:00
|
|
|
patchelf --set-rpath "${libnotify}/lib:${lib.getLib systemd}/lib:$(patchelf --print-rpath $xul)" $xul
|
thunderbird: rewrite
This is a large scale rework of the package, here's a change summary:
* Organized inputs (1/line, except conditionals)
* Introduced alsaSupport, pulseaudioSupport, waylandSupport
* enableGTK3 -> gtk3Support
* enableCalendar -> calendarSupport
* Organized buildInputs, nativeBuildInputs (1/line)
* Corrected native/buildInputs separation
* Ported over fixes/changes from Firefox
* Enabled sound, webp, vpx, rust-SIMD, necko-wifi
* Removed manual wrapping
* Lifted makeDesktopItem out of string section, into Nix
* Correctly set bindgen options
* Added lovesegfault as maintainer
* New url which uses https
This is non-authoritative, look at the diff for further info.
2019-12-07 08:47:31 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
doInstallCheck = true;
|
|
|
|
installCheckPhase = ''
|
|
|
|
"$out/bin/thunderbird" --version
|
|
|
|
'';
|
|
|
|
|
|
|
|
disallowedRequisites = [
|
|
|
|
stdenv.cc
|
|
|
|
];
|
2016-12-25 08:35:20 +00:00
|
|
|
|
|
|
|
passthru.updateScript = import ./../../browsers/firefox/update.nix {
|
2020-07-31 00:33:18 +01:00
|
|
|
attrPath = "thunderbird-78";
|
2016-12-25 08:35:20 +00:00
|
|
|
baseUrl = "http://archive.mozilla.org/pub/thunderbird/releases/";
|
thunderbird: rewrite
This is a large scale rework of the package, here's a change summary:
* Organized inputs (1/line, except conditionals)
* Introduced alsaSupport, pulseaudioSupport, waylandSupport
* enableGTK3 -> gtk3Support
* enableCalendar -> calendarSupport
* Organized buildInputs, nativeBuildInputs (1/line)
* Corrected native/buildInputs separation
* Ported over fixes/changes from Firefox
* Enabled sound, webp, vpx, rust-SIMD, necko-wifi
* Removed manual wrapping
* Lifted makeDesktopItem out of string section, into Nix
* Correctly set bindgen options
* Added lovesegfault as maintainer
* New url which uses https
This is non-authoritative, look at the diff for further info.
2019-12-07 08:47:31 +00:00
|
|
|
inherit writeScript lib common-updater-scripts xidel coreutils gnused
|
|
|
|
gnugrep curl runtimeShell;
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A full-featured e-mail client";
|
|
|
|
homepage = "https://www.thunderbird.net";
|
|
|
|
maintainers = with maintainers; [
|
|
|
|
eelco
|
|
|
|
lovesegfault
|
|
|
|
pierron
|
2020-09-21 10:53:20 +01:00
|
|
|
vcunat
|
thunderbird: rewrite
This is a large scale rework of the package, here's a change summary:
* Organized inputs (1/line, except conditionals)
* Introduced alsaSupport, pulseaudioSupport, waylandSupport
* enableGTK3 -> gtk3Support
* enableCalendar -> calendarSupport
* Organized buildInputs, nativeBuildInputs (1/line)
* Corrected native/buildInputs separation
* Ported over fixes/changes from Firefox
* Enabled sound, webp, vpx, rust-SIMD, necko-wifi
* Removed manual wrapping
* Lifted makeDesktopItem out of string section, into Nix
* Correctly set bindgen options
* Added lovesegfault as maintainer
* New url which uses https
This is non-authoritative, look at the diff for further info.
2019-12-07 08:47:31 +00:00
|
|
|
];
|
|
|
|
platforms = platforms.linux;
|
2020-06-26 23:31:44 +01:00
|
|
|
license = licenses.mpl20;
|
2016-12-25 08:35:20 +00:00
|
|
|
};
|
2012-03-21 01:26:21 +00:00
|
|
|
}
|