···1313 enableOfficialBranding ? false
1414}:
15151616-let version = "31.7.0"; in
1616+let version = "38.1.0"; in
1717let verName = "${version}"; in
18181919stdenv.mkDerivation rec {
2020 name = "thunderbird-${verName}";
21212222 src = fetchurl {
2323- url = "ftp://ftp.mozilla.org/pub/thunderbird/releases/${verName}/source/thunderbird-${verName}.source.tar.bz2";
2424- sha1 = "90e18f8ecccdaf1ee39493223a7e3ad8b3b7bede";
2323+ url = "http://archive.mozilla.org/pub/thunderbird/releases/${verName}/source/thunderbird-${verName}.source.tar.bz2";
2424+2525+ # https://archive.mozilla.org/pub/thunderbird/releases/${verName}/SHA1SUMS
2626+ sha1 = "7bb0c85e889e397e53dcbcbd36957dbd7c8c10bd";
2527 };
26282729 buildInputs = # from firefox30Pkgs.xulrunner, but without gstreamer and libvpx
···7577 cd objdir
7678 echo '${stdenv.lib.concatMapStrings (s : "ac_add_options ${s}\n") configureFlags}' > .mozconfig
7779 echo 'ac_add_options --prefix="'"$out"'"' >> .mozconfig
8080+ # From version 38, we need to specify the source directory to build
8181+ # Thunderbird. Refer to mozilla/configure and search a line with
8282+ # "checking for application to build" and "# Support comm-central".
8383+ echo 'ac_add_options --with-external-source-dir="'`realpath ..`'"' >> .mozconfig
7884 echo 'mk_add_options MOZ_MAKE_FLAGS="-j'"$NIX_BUILD_CORES"'"' >> .mozconfig
7985 echo 'mk_add_options MOZ_OBJDIR="'`pwd`'"' >> .mozconfig
8086