diff --git a/pkgs/build-support/build-mozilla-mach/default.nix b/pkgs/build-support/build-mozilla-mach/default.nix index f2b1a88afebf..af84961d8ec8 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 ? { }, @@ -476,7 +477,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 = [ ];