mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
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:
parent
52bd30d5c5
commit
35c7a488f8
1 changed files with 1 additions and 0 deletions
|
@ -416,6 +416,7 @@ let
|
||||||
|
|
||||||
meta = browser.meta // {
|
meta = browser.meta // {
|
||||||
inherit (browser.meta) description;
|
inherit (browser.meta) description;
|
||||||
|
mainProgram = launcherName;
|
||||||
hydraPlatforms = [];
|
hydraPlatforms = [];
|
||||||
priority = (browser.meta.priority or 0) - 1; # prefer wrapper over the package
|
priority = (browser.meta.priority or 0) - 1; # prefer wrapper over the package
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue