From d3140d859652cfee7139dabe36cd972cf31d9974 Mon Sep 17 00:00:00 2001 From: Ryan Hendrickson Date: Thu, 21 Aug 2025 14:20:37 -0400 Subject: [PATCH] buildMozillaMach: use nss_3_114 as needed As reported in https://github.com/NixOS/nixpkgs/pull/435118, Firefox versions prior to 143 crash when used with nss 3.115. --- pkgs/build-support/build-mozilla-mach/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/build-support/build-mozilla-mach/default.nix b/pkgs/build-support/build-mozilla-mach/default.nix index 953f4a5b1cbb..8afe2e434322 100644 --- a/pkgs/build-support/build-mozilla-mach/default.nix +++ b/pkgs/build-support/build-mozilla-mach/default.nix @@ -89,6 +89,7 @@ in nasm, nspr, nss_esr, + nss_3_114, nss_latest, onnxruntime, pango, @@ -555,7 +556,12 @@ buildStdenv.mkDerivation { xorg.xorgproto zlib ( - if (lib.versionAtLeast version "129") then nss_latest else nss_esr # 3.90 + if (lib.versionAtLeast version "143") then + nss_latest + else if (lib.versionAtLeast version "129") then + nss_3_114 + else + nss_esr # 3.90 ) ] ++ lib.optional alsaSupport alsa-lib