2020-12-31 02:47:54 +00:00
|
|
|
{ stdenv, lib, callPackage, fetchurl, fetchpatch, nixosTests }:
|
2017-03-27 13:33:00 +01:00
|
|
|
|
2018-03-06 22:33:11 +00:00
|
|
|
let
|
2018-10-01 01:00:00 +01:00
|
|
|
common = opts: callPackage (import ./common.nix opts) {};
|
2018-03-06 22:33:11 +00:00
|
|
|
in
|
2017-03-27 13:33:00 +01:00
|
|
|
|
|
|
|
rec {
|
|
|
|
firefox = common rec {
|
|
|
|
pname = "firefox";
|
2021-07-13 18:04:57 +01:00
|
|
|
version = "91.0";
|
2018-05-11 01:09:36 +01:00
|
|
|
src = fetchurl {
|
2021-07-13 18:04:57 +01:00
|
|
|
url = "mirror://mozilla/firefox/releases/${version}/source/firefox-${version}.source.tar.xz";
|
2021-08-09 10:57:36 +01:00
|
|
|
sha512 = "a02486a3996570e0cc815e92c98890bca1d27ce0018c2ee3d4bff9a6e54dbc8f5926fea8b5864f208e15389d631685b2add1e4e9e51146e40224d16d5c02f730";
|
2017-03-27 13:33:00 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A web browser built from Firefox source tree";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.mozilla.com/en-US/firefox/";
|
2021-03-22 15:09:57 +00:00
|
|
|
maintainers = with lib.maintainers; [ eelco lovesegfault hexa ];
|
2018-07-10 23:10:04 +01:00
|
|
|
platforms = lib.platforms.unix;
|
2019-09-21 04:20:32 +01:00
|
|
|
badPlatforms = lib.platforms.darwin;
|
2020-03-06 02:36:01 +00:00
|
|
|
broken = stdenv.buildPlatform.is32bit; # since Firefox 60, build on 32-bit platforms fails with "out of memory".
|
|
|
|
# not in `badPlatforms` because cross-compilation on 64-bit machine might work.
|
2021-07-04 22:11:50 +01:00
|
|
|
maxSilent = 14400; # 4h, double the default of 7200s (c.f. #129212, #129115)
|
2018-08-06 15:13:50 +01:00
|
|
|
license = lib.licenses.mpl20;
|
2017-03-27 13:33:00 +01:00
|
|
|
};
|
2020-12-31 02:47:54 +00:00
|
|
|
tests = [ nixosTests.firefox ];
|
2017-03-27 13:33:00 +01:00
|
|
|
updateScript = callPackage ./update.nix {
|
|
|
|
attrPath = "firefox-unwrapped";
|
|
|
|
};
|
2018-10-01 01:00:00 +01:00
|
|
|
};
|
2017-03-27 13:33:00 +01:00
|
|
|
|
2021-08-09 10:57:57 +01:00
|
|
|
firefox-esr-91 = common rec {
|
|
|
|
pname = "firefox-esr";
|
2021-07-13 18:04:57 +01:00
|
|
|
version = "91.0esr";
|
2021-08-09 10:57:57 +01:00
|
|
|
src = fetchurl {
|
2021-07-13 18:04:57 +01:00
|
|
|
url = "mirror://mozilla/firefox/releases/${version}/source/firefox-${version}.source.tar.xz";
|
2021-08-09 10:57:57 +01:00
|
|
|
sha512 = "e518e1536094a1da44eb45b3b0f3adc1b5532f17da2dbcc994715419ec4fcec40574fdf633349a8e5de6382942f5706757a35f1b96b11de4754855b9cf7946ae";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A web browser built from Firefox Extended Support Release source tree";
|
|
|
|
homepage = "http://www.mozilla.com/en-US/firefox/";
|
|
|
|
maintainers = with lib.maintainers; [ hexa ];
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
badPlatforms = lib.platforms.darwin;
|
|
|
|
broken = stdenv.buildPlatform.is32bit; # since Firefox 60, build on 32-bit platforms fails with "out of memory".
|
|
|
|
# not in `badPlatforms` because cross-compilation on 64-bit machine might work.
|
|
|
|
license = lib.licenses.mpl20;
|
|
|
|
};
|
|
|
|
tests = [ nixosTests.firefox-esr-91 ];
|
|
|
|
updateScript = callPackage ./update.nix {
|
|
|
|
attrPath = "firefox-esr-91-unwrapped";
|
|
|
|
versionSuffix = "esr";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-07-27 13:14:14 +01:00
|
|
|
firefox-esr-78 = common rec {
|
|
|
|
pname = "firefox-esr";
|
2021-07-13 18:04:57 +01:00
|
|
|
version = "78.12.0esr";
|
2020-07-27 13:14:14 +01:00
|
|
|
src = fetchurl {
|
2021-07-13 18:04:57 +01:00
|
|
|
url = "mirror://mozilla/firefox/releases/${version}/source/firefox-${version}.source.tar.xz";
|
2021-07-12 13:13:20 +01:00
|
|
|
sha512 = "646eb803e0d0e541773e3111708c7eaa85e784e4bae6e4a77dcecdc617ee29e2e349c9ef16ae7e663311734dd7491aebd904359124dda62672dbc18bfb608f0a";
|
2020-07-27 13:14:14 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A web browser built from Firefox Extended Support Release source tree";
|
|
|
|
homepage = "http://www.mozilla.com/en-US/firefox/";
|
2021-03-22 15:09:57 +00:00
|
|
|
maintainers = with lib.maintainers; [ eelco hexa ];
|
2020-07-27 13:14:14 +01:00
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
badPlatforms = lib.platforms.darwin;
|
|
|
|
broken = stdenv.buildPlatform.is32bit; # since Firefox 60, build on 32-bit platforms fails with "out of memory".
|
|
|
|
# not in `badPlatforms` because cross-compilation on 64-bit machine might work.
|
|
|
|
license = lib.licenses.mpl20;
|
|
|
|
};
|
2021-08-09 10:57:57 +01:00
|
|
|
tests = [ nixosTests.firefox-esr-78 ];
|
2020-07-27 13:14:14 +01:00
|
|
|
updateScript = callPackage ./update.nix {
|
|
|
|
attrPath = "firefox-esr-78-unwrapped";
|
2021-05-05 03:08:28 +01:00
|
|
|
versionSuffix = "esr";
|
2020-07-27 13:14:14 +01:00
|
|
|
};
|
|
|
|
};
|
2020-02-01 16:37:56 +00:00
|
|
|
}
|