mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
41 lines
1.3 KiB
Nix
41 lines
1.3 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
callPackage,
|
|
fetchurl,
|
|
nixosTests,
|
|
buildMozillaMach,
|
|
}:
|
|
|
|
buildMozillaMach rec {
|
|
pname = "firefox-beta";
|
|
binaryName = pname;
|
|
version = "143.0b9";
|
|
applicationName = "Firefox Beta";
|
|
src = fetchurl {
|
|
url = "mirror://mozilla/firefox/releases/${version}/source/firefox-${version}.source.tar.xz";
|
|
sha512 = "b014e343ddba2e3750a0f50925c9b7f07237593c299604d96275f45332063f1487a47234411f7c952ee50ffaeb385a22dedbc4f924e4e0fc89668172b06c78fd";
|
|
};
|
|
|
|
meta = {
|
|
changelog = "https://www.mozilla.org/en-US/firefox/${lib.versions.majorMinor version}beta/releasenotes/";
|
|
description = "Web browser built from Firefox Beta Release source tree";
|
|
homepage = "http://www.mozilla.com/en-US/firefox/";
|
|
maintainers = with lib.maintainers; [ jopejoe1 ];
|
|
platforms = lib.platforms.unix;
|
|
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.
|
|
maxSilent = 14400; # 4h, double the default of 7200s (c.f. #129212, #129115)
|
|
license = lib.licenses.mpl20;
|
|
mainProgram = binaryName;
|
|
};
|
|
tests = {
|
|
inherit (nixosTests) firefox-beta;
|
|
};
|
|
updateScript = callPackage ../update.nix {
|
|
attrPath = "firefox-beta-unwrapped";
|
|
versionSuffix = "b[0-9]*";
|
|
};
|
|
}
|