buildMozillaMach: support addon sideloading

This commit is contained in:
Infinidoge 2023-11-14 09:40:05 -05:00
parent c4c81ac8a2
commit 101fc1b99a
No known key found for this signature in database

View file

@ -7,6 +7,7 @@
, applicationName ? "Mozilla Firefox" , applicationName ? "Mozilla Firefox"
, branding ? null , branding ? null
, requireSigning ? true , requireSigning ? true
, allowAddonSideload ? false
, src , src
, unpackPhase ? null , unpackPhase ? null
, extraPatches ? [] , extraPatches ? []
@ -411,6 +412,7 @@ buildStdenv.mkDerivation {
# https://bugzilla.mozilla.org/show_bug.cgi?id=1482204 # https://bugzilla.mozilla.org/show_bug.cgi?id=1482204
++ lib.optional (ltoSupport && (buildStdenv.isAarch32 || buildStdenv.isi686 || buildStdenv.isx86_64)) "--disable-elf-hack" ++ lib.optional (ltoSupport && (buildStdenv.isAarch32 || buildStdenv.isi686 || buildStdenv.isx86_64)) "--disable-elf-hack"
++ lib.optional (!drmSupport) "--disable-eme" ++ lib.optional (!drmSupport) "--disable-eme"
++ lib.optional (allowAddonSideload) "--allow-addon-sideload"
++ [ ++ [
(enableFeature alsaSupport "alsa") (enableFeature alsaSupport "alsa")
(enableFeature crashreporterSupport "crashreporter") (enableFeature crashreporterSupport "crashreporter")