From c7657c0a136930ea5ce95bc0935e4f57492f2e18 Mon Sep 17 00:00:00 2001 From: Hythera <87016780+Hythera@users.noreply.github.com> Date: Tue, 4 Aug 2026 23:02:58 +0200 Subject: [PATCH 1/2] buildMozillaMach: add support for extraPreConfigure --- pkgs/build-support/build-mozilla-mach/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/build-support/build-mozilla-mach/default.nix b/pkgs/build-support/build-mozilla-mach/default.nix index 566d1f1a3a75..1132b07930e3 100644 --- a/pkgs/build-support/build-mozilla-mach/default.nix +++ b/pkgs/build-support/build-mozilla-mach/default.nix @@ -16,6 +16,7 @@ extraPostPatch ? "", extraNativeBuildInputs ? [ ], extraConfigureFlags ? [ ], + extraPreConfigure ? "", extraBuildInputs ? [ ], extraMakeFlags ? [ ], extraPassthru ? { }, @@ -470,7 +471,8 @@ buildStdenv.mkDerivation { # linking firefox hits the vm.max_map_count kernel limit with the default musl allocator # TODO: Default vm.max_map_count has been increased, retest without this export LD_PRELOAD=${mimalloc}/lib/libmimalloc.so - ''; + '' + + extraPreConfigure; # firefox has a different definition of configurePlatforms from nixpkgs, see configureFlags configurePlatforms = [ ]; From 01cdb7164ae2079906587d3fbc5adb9c87eb2928 Mon Sep 17 00:00:00 2001 From: Hythera <87016780+Hythera@users.noreply.github.com> Date: Tue, 4 Aug 2026 23:05:38 +0200 Subject: [PATCH 2/2] librewolf-unwrapped: disbaled MOZ_TELEMETRY_REPORTING --- pkgs/by-name/li/librewolf-unwrapped/librewolf.nix | 4 ++++ pkgs/by-name/li/librewolf-unwrapped/package.nix | 1 + 2 files changed, 5 insertions(+) diff --git a/pkgs/by-name/li/librewolf-unwrapped/librewolf.nix b/pkgs/by-name/li/librewolf-unwrapped/librewolf.nix index 1e3bf61a2e63..dca96ea94fb5 100644 --- a/pkgs/by-name/li/librewolf-unwrapped/librewolf.nix +++ b/pkgs/by-name/li/librewolf-unwrapped/librewolf.nix @@ -24,6 +24,10 @@ rec { "--enable-lto=thin,cross" ]; + extraPreConfigure = '' + export MOZ_TELEMETRY_REPORTING= + ''; + extraPostPatch = '' while read patch_name; do echo "applying LibreWolf patch: $patch_name" diff --git a/pkgs/by-name/li/librewolf-unwrapped/package.nix b/pkgs/by-name/li/librewolf-unwrapped/package.nix index 2dcab94afe52..86076f9126aa 100644 --- a/pkgs/by-name/li/librewolf-unwrapped/package.nix +++ b/pkgs/by-name/li/librewolf-unwrapped/package.nix @@ -20,6 +20,7 @@ in branding = "browser/branding/librewolf"; inherit (librewolf-src) extraConfigureFlags + extraPreConfigure extraPatches extraPostPatch extraPassthru