2020-02-23 13:10:16 +01:00
|
|
|
{ config, lib, callPackage, fetchurl }:
|
2017-03-27 14:33:00 +02:00
|
|
|
|
2018-03-06 23:33:11 +01:00
|
|
|
let
|
2018-10-01 02:00:00 +02:00
|
|
|
common = opts: callPackage (import ./common.nix opts) {};
|
2018-03-06 23:33:11 +01:00
|
|
|
in
|
2017-03-27 14:33:00 +02:00
|
|
|
|
|
|
|
rec {
|
|
|
|
firefox = common rec {
|
|
|
|
pname = "firefox";
|
2020-02-18 13:26:40 +01:00
|
|
|
ffversion = "73.0.1";
|
2018-05-11 02:09:36 +02:00
|
|
|
src = fetchurl {
|
2018-10-01 02:00:00 +02:00
|
|
|
url = "mirror://mozilla/firefox/releases/${ffversion}/source/firefox-${ffversion}.source.tar.xz";
|
2020-02-18 13:26:40 +01:00
|
|
|
sha512 = "1vdz711v44xdiry5vm4rrg7fjkrlnyn5jjkaq0bcf98jwrn9bjklmgwblrrnvmpc9pjd2ff3m7354q7vy6gd6c3yh2jhbq91v2w5yl9";
|
2017-03-27 14:33:00 +02:00
|
|
|
};
|
|
|
|
|
2019-01-31 17:38:01 +01:00
|
|
|
patches = [
|
2019-01-23 01:07:33 +01:00
|
|
|
./no-buildconfig-ffx65.patch
|
2018-06-29 20:55:43 +02:00
|
|
|
];
|
|
|
|
|
2017-03-27 14:33:00 +02:00
|
|
|
meta = {
|
|
|
|
description = "A web browser built from Firefox source tree";
|
|
|
|
homepage = http://www.mozilla.com/en-US/firefox/;
|
2019-02-14 11:27:14 +01:00
|
|
|
maintainers = with lib.maintainers; [ eelco andir ];
|
2018-07-11 00:10:04 +02:00
|
|
|
platforms = lib.platforms.unix;
|
2019-09-21 05:20:32 +02:00
|
|
|
badPlatforms = lib.platforms.darwin;
|
2018-08-06 16:13:50 +02:00
|
|
|
license = lib.licenses.mpl20;
|
2017-03-27 14:33:00 +02:00
|
|
|
};
|
|
|
|
updateScript = callPackage ./update.nix {
|
|
|
|
attrPath = "firefox-unwrapped";
|
2018-11-16 15:04:54 +01:00
|
|
|
versionKey = "ffversion";
|
2017-03-27 14:33:00 +02:00
|
|
|
};
|
2018-10-01 02:00:00 +02:00
|
|
|
};
|
2017-03-27 14:33:00 +02:00
|
|
|
|
2019-07-14 07:54:55 +02:00
|
|
|
firefox-esr-68 = common rec {
|
|
|
|
pname = "firefox-esr";
|
2020-02-10 16:37:29 +01:00
|
|
|
ffversion = "68.5.0esr";
|
2019-07-14 07:54:55 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://mozilla/firefox/releases/${ffversion}/source/firefox-${ffversion}.source.tar.xz";
|
2020-02-10 16:37:29 +01:00
|
|
|
sha512 = "39i05r7r4rh2jvc8v4m2s2i6d33qaa075a1lc8m9gx7s3rw8yxja2c42cv5hq1imr9zc4dldbk88paz6lv1w8rhncm0dkxw8z6lxkqa";
|
2019-07-14 07:54:55 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./no-buildconfig-ffx65.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = firefox.meta // {
|
|
|
|
description = "A web browser built from Firefox Extended Support Release source tree";
|
|
|
|
};
|
|
|
|
updateScript = callPackage ./update.nix {
|
|
|
|
attrPath = "firefox-esr-68-unwrapped";
|
|
|
|
versionSuffix = "esr";
|
|
|
|
versionKey = "ffversion";
|
|
|
|
};
|
|
|
|
};
|
2020-02-07 00:03:09 +01:00
|
|
|
} // lib.optionalAttrs (config.allowAliases or true) {
|
2020-02-04 23:08:51 +01:00
|
|
|
#### ALIASES
|
|
|
|
#### remove after 20.03 branchoff
|
|
|
|
|
2020-02-01 17:40:32 +01:00
|
|
|
firefox-esr-52 = throw ''
|
|
|
|
firefoxPackages.firefox-esr-52 was removed as it's an unsupported ESR with
|
|
|
|
open security issues. If you need it because you need to run some plugins
|
|
|
|
not having been ported to WebExtensions API, import it from an older
|
|
|
|
nixpkgs checkout still containing it.
|
|
|
|
'';
|
2020-02-01 17:30:54 +01:00
|
|
|
firefox-esr-60 = throw "firefoxPackages.firefox-esr-60 was removed as it's an unsupported ESR with open security issues.";
|
|
|
|
|
2020-02-01 17:37:56 +01:00
|
|
|
icecat = throw "firefoxPackages.icecat was removed as even its latest upstream version is based on an unsupported ESR release with open security issues.";
|
|
|
|
icecat-52 = throw "firefoxPackages.icecat was removed as even its latest upstream version is based on an unsupported ESR release with open security issues.";
|
|
|
|
|
2020-01-10 18:08:28 +01:00
|
|
|
tor-browser-7-5 = throw "firefoxPackages.tor-browser-7-5 was removed because it was out of date and inadequately maintained. Please use tor-browser-bundle-bin instead. See #77452.";
|
|
|
|
tor-browser-8-5 = throw "firefoxPackages.tor-browser-8-5 was removed because it was out of date and inadequately maintained. Please use tor-browser-bundle-bin instead. See #77452.";
|
|
|
|
tor-browser = throw "firefoxPackages.tor-browser was removed because it was out of date and inadequately maintained. Please use tor-browser-bundle-bin instead. See #77452.";
|
2017-08-15 02:00:00 +02:00
|
|
|
|
2020-02-01 17:37:56 +01:00
|
|
|
}
|