From 83d02af8b35fd69b8bc795a6aea942b1c8ce7015 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 26 May 2025 22:05:27 +0200 Subject: [PATCH] firefox-unwrapped: 138.0.4 -> 139.0 https://www.mozilla.org/en-US/firefox/139.0/releasenotes/ --- .../browsers/firefox/139-relax-apple-sdk.patch | 13 +++++++++++++ .../networking/browsers/firefox/common.nix | 6 ++++-- .../browsers/firefox/packages/firefox.nix | 4 ++-- 3 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 pkgs/applications/networking/browsers/firefox/139-relax-apple-sdk.patch diff --git a/pkgs/applications/networking/browsers/firefox/139-relax-apple-sdk.patch b/pkgs/applications/networking/browsers/firefox/139-relax-apple-sdk.patch new file mode 100644 index 000000000000..3c7e1271889a --- /dev/null +++ b/pkgs/applications/networking/browsers/firefox/139-relax-apple-sdk.patch @@ -0,0 +1,13 @@ +diff --git a/build/moz.configure/toolchain.configure b/build/moz.configure/toolchain.configure +index 769ac0379045..160734dd386d 100644 +--- a/build/moz.configure/toolchain.configure ++++ b/build/moz.configure/toolchain.configure +@@ -233,7 +233,7 @@ with only_when(host_is_osx | target_is_osx): + ) + + def mac_sdk_min_version(): +- return "15.4" ++ return "15.2" + + @depends( + "--with-macos-sdk", diff --git a/pkgs/applications/networking/browsers/firefox/common.nix b/pkgs/applications/networking/browsers/firefox/common.nix index 9799f2fcfb8c..965afea61031 100644 --- a/pkgs/applications/networking/browsers/firefox/common.nix +++ b/pkgs/applications/networking/browsers/firefox/common.nix @@ -310,12 +310,14 @@ buildStdenv.mkDerivation { ./no-buildconfig-ffx121.patch ] ++ lib.optionals (lib.versionAtLeast version "136") [ ./no-buildconfig-ffx136.patch ] - ++ [ + ++ lib.optionals (lib.versionAtLeast version "139") [ ./139-relax-apple-sdk.patch ] + ++ lib.optionals (lib.versionOlder version "139") [ # Fix for missing vector header on macOS # https://bugzilla.mozilla.org/show_bug.cgi?id=1959377 # Fixed on Firefox 139 ./firefox-mac-missing-vector-header.patch - + ] + ++ lib.optionals (lib.versionOlder version "140") [ # https://bugzilla.mozilla.org/show_bug.cgi?id=1962497 # https://phabricator.services.mozilla.com/D246545 # Fixed on Firefox 140 diff --git a/pkgs/applications/networking/browsers/firefox/packages/firefox.nix b/pkgs/applications/networking/browsers/firefox/packages/firefox.nix index 7e728b48ad45..df69a59f6c39 100644 --- a/pkgs/applications/networking/browsers/firefox/packages/firefox.nix +++ b/pkgs/applications/networking/browsers/firefox/packages/firefox.nix @@ -9,10 +9,10 @@ buildMozillaMach rec { pname = "firefox"; - version = "138.0.4"; + version = "139.0"; src = fetchurl { url = "mirror://mozilla/firefox/releases/${version}/source/firefox-${version}.source.tar.xz"; - sha512 = "64d80456da8df27d7eeed7eb20c35fcf213bc948eb48739b6101e2c476ea9a9133da928477a79683c96c160f8d53bed52be487f01a8d29e38d39071f12676806"; + sha512 = "84a2b47f2ff71aac226a774ab0ac9ab8d9a16f5620a06f7abb6648732209d022aef35a9d4873e91ebd67a4fc494fc238524e25c38fad8046db26afda06e6f970"; }; meta = {