diff options
author | Matthew_Cash <matthew@matthew-cash.com> | 2024-01-10 11:48:48 -0800 |
---|---|---|
committer | Martin Weinelt <mweinelt@users.noreply.github.com> | 2024-01-12 01:29:00 +0100 |
commit | 35c7a488f857bd30d6b3601f621b506a00be28fa (patch) | |
tree | afde1c4a7ec7b8fbde88a633482cb52691851271 | |
parent | 52bd30d5c5118366498400322fe01909f566f14c (diff) |
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.
-rw-r--r-- | pkgs/applications/networking/browsers/firefox/wrapper.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/applications/networking/browsers/firefox/wrapper.nix b/pkgs/applications/networking/browsers/firefox/wrapper.nix index dcb8923c423c..a2b97577c8d3 100644 --- a/pkgs/applications/networking/browsers/firefox/wrapper.nix +++ b/pkgs/applications/networking/browsers/firefox/wrapper.nix @@ -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 }; |