···13 enableOfficialBranding ? false
14}:
1516-let version = "31.7.0"; in
17let verName = "${version}"; in
1819stdenv.mkDerivation rec {
20 name = "thunderbird-${verName}";
2122 src = fetchurl {
23- url = "ftp://ftp.mozilla.org/pub/thunderbird/releases/${verName}/source/thunderbird-${verName}.source.tar.bz2";
24- sha1 = "90e18f8ecccdaf1ee39493223a7e3ad8b3b7bede";
0025 };
2627 buildInputs = # from firefox30Pkgs.xulrunner, but without gstreamer and libvpx
···75 cd objdir
76 echo '${stdenv.lib.concatMapStrings (s : "ac_add_options ${s}\n") configureFlags}' > .mozconfig
77 echo 'ac_add_options --prefix="'"$out"'"' >> .mozconfig
000078 echo 'mk_add_options MOZ_MAKE_FLAGS="-j'"$NIX_BUILD_CORES"'"' >> .mozconfig
79 echo 'mk_add_options MOZ_OBJDIR="'`pwd`'"' >> .mozconfig
80
···13 enableOfficialBranding ? false
14}:
1516+let version = "38.1.0"; in
17let verName = "${version}"; in
1819stdenv.mkDerivation rec {
20 name = "thunderbird-${verName}";
2122 src = fetchurl {
23+ url = "http://archive.mozilla.org/pub/thunderbird/releases/${verName}/source/thunderbird-${verName}.source.tar.bz2";
24+25+ # https://archive.mozilla.org/pub/thunderbird/releases/${verName}/SHA1SUMS
26+ sha1 = "7bb0c85e889e397e53dcbcbd36957dbd7c8c10bd";
27 };
2829 buildInputs = # from firefox30Pkgs.xulrunner, but without gstreamer and libvpx
···77 cd objdir
78 echo '${stdenv.lib.concatMapStrings (s : "ac_add_options ${s}\n") configureFlags}' > .mozconfig
79 echo 'ac_add_options --prefix="'"$out"'"' >> .mozconfig
80+ # From version 38, we need to specify the source directory to build
81+ # Thunderbird. Refer to mozilla/configure and search a line with
82+ # "checking for application to build" and "# Support comm-central".
83+ echo 'ac_add_options --with-external-source-dir="'`realpath ..`'"' >> .mozconfig
84 echo 'mk_add_options MOZ_MAKE_FLAGS="-j'"$NIX_BUILD_CORES"'"' >> .mozconfig
85 echo 'mk_add_options MOZ_OBJDIR="'`pwd`'"' >> .mozconfig
86