firefox: set meta.mainProgram to launcherName in wrapper

After #235912 changed the binary name for some Firefox packages, the meta.mainProgram value was no longer accurate and commands such as nix run nixpkgs#firefox-devedition failed because /bin/firefox was executed instead of /bin/firefox-devedition.

This sets meta.mainProgram to launcherName, which contains the nameSuffix set in #235912, instead of inheriting the unwrapped package's mainProgram, which is always firefox with no suffix.
This commit is contained in:
Matthew_Cash 2024-01-10 11:48:48 -08:00 committed by Martin Weinelt
parent 52bd30d5c5
commit 35c7a488f8

View File

@ -416,6 +416,7 @@ let
meta = browser.meta // {
inherit (browser.meta) description;
mainProgram = launcherName;
hydraPlatforms = [];
priority = (browser.meta.priority or 0) - 1; # prefer wrapper over the package
};