buildMozillaMach: add branding option to change the path where the branding is located

This commit is contained in:
jopejoe1 2023-03-23 17:47:51 +01:00
parent 940594acff
commit a74f2234b4

View file

@ -5,6 +5,7 @@
, binaryName ? "firefox" , binaryName ? "firefox"
, application ? "browser" , application ? "browser"
, applicationName ? "Mozilla Firefox" , applicationName ? "Mozilla Firefox"
, branding ? null
, src , src
, unpackPhase ? null , unpackPhase ? null
, extraPatches ? [] , extraPatches ? []
@ -390,6 +391,7 @@ buildStdenv.mkDerivation ({
] ]
++ lib.optionals enableDebugSymbols [ "--disable-strip" "--disable-install-strip" ] ++ lib.optionals enableDebugSymbols [ "--disable-strip" "--disable-install-strip" ]
++ lib.optional enableOfficialBranding "--enable-official-branding" ++ lib.optional enableOfficialBranding "--enable-official-branding"
++ lib.optional (branding != null) "--with-branding=${branding}"
++ extraConfigureFlags; ++ extraConfigureFlags;
buildInputs = [ buildInputs = [