From 80168addbea2f90d2929f088c58ecb65243c6557 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Fri, 24 Mar 2023 14:16:22 +0100 Subject: [PATCH] firefox-devedition-unwrapped: init at 112.0b6 --- nixos/tests/all-tests.nix | 1 + .../networking/browsers/firefox/packages.nix | 29 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 32 insertions(+) diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index ff2549395a0b..11e355da5a78 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -221,6 +221,7 @@ in { fenics = handleTest ./fenics.nix {}; ferm = handleTest ./ferm.nix {}; firefox = handleTest ./firefox.nix { firefoxPackage = pkgs.firefox; }; + firefox-devedition = handleTest ./firefox.nix { firefoxPackage = pkgs.firefox-devedition; }; firefox-esr = handleTest ./firefox.nix { firefoxPackage = pkgs.firefox-esr; }; # used in `tested` job firefox-esr-102 = handleTest ./firefox.nix { firefoxPackage = pkgs.firefox-esr-102; }; firejail = handleTest ./firejail.nix {}; diff --git a/pkgs/applications/networking/browsers/firefox/packages.nix b/pkgs/applications/networking/browsers/firefox/packages.nix index d8a236185809..ae9bd572d805 100644 --- a/pkgs/applications/networking/browsers/firefox/packages.nix +++ b/pkgs/applications/networking/browsers/firefox/packages.nix @@ -27,6 +27,35 @@ rec { }; }; + firefox-devedition = buildMozillaMach rec { + pname = "firefox-devedition"; + version = "112.0b6"; + applicationName = "Mozilla Firefox Developer Edition"; + branding = "browser/branding/aurora"; + src = fetchurl { + url = "mirror://mozilla/devedition/releases/${version}/source/firefox-${version}.source.tar.xz"; + sha512 = "sha512-UJjZ4HFaO6XUpFt+d61KXdliN3FW0BDHFpwt4f6/pv6Rv10mxeRUnGKZDomoLwv+yCgN3EKDZ+iPA9FzkLxZCQ=="; + }; + + meta = { + description = "A web browser built from Firefox Developer Edition source tree"; + homepage = "http://www.mozilla.com/en-US/firefox/"; + maintainers = with lib.maintainers; [ jopejoe1 ]; + 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. + maxSilent = 14400; # 4h, double the default of 7200s (c.f. #129212, #129115) + license = lib.licenses.mpl20; + }; + tests = [ nixosTests.firefox-devedition ]; + updateScript = callPackage ./update.nix { + attrPath = "firefox-devedition-unwrapped"; + versionSuffix = "b[0-9]*"; + baseUrl = "https://archive.mozilla.org/pub/devedition/releases/"; + }; + }; + firefox-esr-102 = buildMozillaMach rec { pname = "firefox-esr-102"; version = "102.9.0esr"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9076a08fd744..0099d4949836 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -30031,10 +30031,12 @@ with pkgs; firefoxPackages = recurseIntoAttrs (callPackage ../applications/networking/browsers/firefox/packages.nix {}); firefox-unwrapped = firefoxPackages.firefox; + firefox-devedition-unwrapped = firefoxPackages.firefox-devedition; firefox-esr-102-unwrapped = firefoxPackages.firefox-esr-102; firefox-esr-unwrapped = firefoxPackages.firefox-esr-102; firefox = wrapFirefox firefox-unwrapped { }; + firefox-devedition = wrapFirefox firefox-devedition-unwrapped { }; firefox-esr = firefox-esr-102; firefox-esr-102 = wrapFirefox firefox-esr-102-unwrapped { };