diff --git a/pkgs/applications/networking/browsers/firefox/default.nix b/pkgs/applications/networking/browsers/firefox/default.nix index 41f8cc155a8..552c8d4d822 100644 --- a/pkgs/applications/networking/browsers/firefox/default.nix +++ b/pkgs/applications/networking/browsers/firefox/default.nix @@ -122,6 +122,7 @@ common = { pname, version, sha256 }: stdenv.mkDerivation rec { passthru = { inherit gtk nspr version; isFirefox3Like = true; + browserName = pname; }; }; diff --git a/pkgs/applications/networking/browsers/firefox/wrapper.nix b/pkgs/applications/networking/browsers/firefox/wrapper.nix index 91486b608b2..5fb887bda22 100644 --- a/pkgs/applications/networking/browsers/firefox/wrapper.nix +++ b/pkgs/applications/networking/browsers/firefox/wrapper.nix @@ -9,8 +9,8 @@ }: ## configurability of the wrapper itself -browser : -{ browserName ? (lib.head (lib.splitString "-" browser.name)) # name of the executable +browser: +{ browserName ? browser.browserName or (builtins.parseDrvName browser.name).name , name ? (browserName + "-" + (builtins.parseDrvName browser.name).version) , desktopName ? # browserName with first letter capitalized (lib.toUpper (lib.substring 0 1 browserName) + lib.substring 1 (-1) browserName)