1{
2 stdenv,
3 lib,
4 callPackage,
5 fetchurl,
6 nixosTests,
7 buildMozillaMach,
8}:
9
10buildMozillaMach rec {
11 pname = "firefox-beta";
12 binaryName = pname;
13 version = "142.0b3";
14 applicationName = "Firefox Beta";
15 src = fetchurl {
16 url = "mirror://mozilla/firefox/releases/${version}/source/firefox-${version}.source.tar.xz";
17 sha512 = "707781fcc59798c0ecbf11532eac41f4f134f24b1d670234cf674e433525ca83fe4fff75874d1a16d2be2039959731e71a5aa56e727d2b46e5bc40f63277b188";
18 };
19
20 meta = {
21 changelog = "https://www.mozilla.org/en-US/firefox/${lib.versions.majorMinor version}beta/releasenotes/";
22 description = "Web browser built from Firefox Beta Release source tree";
23 homepage = "http://www.mozilla.com/en-US/firefox/";
24 maintainers = with lib.maintainers; [ jopejoe1 ];
25 platforms = lib.platforms.unix;
26 broken = stdenv.buildPlatform.is32bit;
27 # since Firefox 60, build on 32-bit platforms fails with "out of memory".
28 # not in `badPlatforms` because cross-compilation on 64-bit machine might work.
29 maxSilent = 14400; # 4h, double the default of 7200s (c.f. #129212, #129115)
30 license = lib.licenses.mpl20;
31 mainProgram = binaryName;
32 };
33 tests = {
34 inherit (nixosTests) firefox-beta;
35 };
36 updateScript = callPackage ../update.nix {
37 attrPath = "firefox-beta-unwrapped";
38 versionSuffix = "b[0-9]*";
39 };
40}