firefox-bin/thunderbird-bin: reuse the same updateScript for both

This commit is contained in:
Rok Garbas
2016-12-18 16:45:33 +01:00
parent 56cb5b7609
commit a66b703f94
6 changed files with 1135 additions and 652 deletions
@@ -33,6 +33,11 @@
, nspr
, nss
, pango
, writeScript
, xidel
, coreutils
, gnused
, gnugrep
}:
assert stdenv.isLinux;
@@ -57,10 +62,11 @@ let
source = stdenv.lib.findFirst (sourceMatches systemLocale) defaultSource sources;
name = "thunderbird-bin-${version}";
in
stdenv.mkDerivation {
name = "thunderbird-bin-${version}";
inherit name;
src = fetchurl {
url = "http://download-installer.cdn.mozilla.net/pub/thunderbird/releases/${version}/${source.arch}/${source.locale}/thunderbird-${version}.tar.bz2";
@@ -141,6 +147,12 @@ stdenv.mkDerivation {
EOF
'';
passthru.updateScript = import ./../../browsers/firefox-bin/update.nix {
inherit name writeScript xidel coreutils gnused gnugrep curl;
baseName = "thunderbird";
basePath = "pkgs/applications/networking/mailreaders/thunderbird-bin";
baseUrl = "http://archive.mozilla.org/pub/thunderbird/releases/";
};
meta = with stdenv.lib; {
description = "Mozilla Thunderbird, a full-featured email client (binary package)";
homepage = http://www.mozilla.org/thunderbird/;