librewolf-unwrapped: disbaled MOZ_TELEMETRY_REPORTING (#549610)

This commit is contained in:
Martin Weinelt
2026-08-06 00:43:58 +00:00
committed by GitHub
3 changed files with 8 additions and 1 deletions

View File

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

View File

@@ -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"

View File

@@ -20,6 +20,7 @@ in
branding = "browser/branding/librewolf";
inherit (librewolf-src)
extraConfigureFlags
extraPreConfigure
extraPatches
extraPostPatch
extraPassthru