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] 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 = [ ];