firefox-{beta,devedition}: make binaryName match desktop file
This branches off of the unmerged PR #294971, which had the goal of distinguishing between the various Firefox packages by giving them all unique binaryNames. The goal of this PR, by contrast, is making the names of the XDG desktop files that we generate match the name by which Firefox will identify itself over D-Bus. Co-authored-by: Xandor Schiefer <me@xandor.co.za>
This commit is contained in:
co-authored by
Xandor Schiefer
parent
cc845261f9
commit
9df487993d
@@ -425,6 +425,7 @@ buildStdenv.mkDerivation {
|
||||
"--disable-updater"
|
||||
"--enable-application=${application}"
|
||||
"--enable-default-toolkit=${toolkit}"
|
||||
"--with-app-name=${binaryName}"
|
||||
"--with-distribution-id=org.nixos"
|
||||
"--with-libclang-path=${lib.getLib llvmPackagesBuildBuild.libclang}/lib"
|
||||
"--with-wasi-sysroot=${wasiSysRoot}"
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
buildMozillaMach rec {
|
||||
pname = "firefox-beta";
|
||||
binaryName = pname;
|
||||
version = "135.0b9";
|
||||
applicationName = "Mozilla Firefox Beta";
|
||||
src = fetchurl {
|
||||
@@ -27,7 +28,7 @@ buildMozillaMach rec {
|
||||
# not in `badPlatforms` because cross-compilation on 64-bit machine might work.
|
||||
maxSilent = 14400; # 4h, double the default of 7200s (c.f. #129212, #129115)
|
||||
license = lib.licenses.mpl20;
|
||||
mainProgram = "firefox";
|
||||
mainProgram = binaryName;
|
||||
};
|
||||
tests = {
|
||||
inherit (nixosTests) firefox-beta;
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
buildMozillaMach rec {
|
||||
pname = "firefox-devedition";
|
||||
binaryName = pname;
|
||||
version = "135.0b9";
|
||||
applicationName = "Mozilla Firefox Developer Edition";
|
||||
requireSigning = false;
|
||||
@@ -29,7 +30,7 @@ buildMozillaMach rec {
|
||||
# not in `badPlatforms` because cross-compilation on 64-bit machine might work.
|
||||
maxSilent = 14400; # 4h, double the default of 7200s (c.f. #129212, #129115)
|
||||
license = lib.licenses.mpl20;
|
||||
mainProgram = "firefox";
|
||||
mainProgram = binaryName;
|
||||
};
|
||||
tests = {
|
||||
inherit (nixosTests) firefox-devedition;
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
};
|
||||
|
||||
extraConfigureFlags = [
|
||||
"--with-app-name=${pname}"
|
||||
"--with-app-basename=${applicationName}"
|
||||
"--with-unsigned-addon-scopes=app,system"
|
||||
"--enable-proxy-bypass-protection"
|
||||
|
||||
@@ -9,7 +9,6 @@ rec {
|
||||
extraPatches = [ "${source}/patches/pref-pane/pref-pane-small.patch" ];
|
||||
|
||||
extraConfigureFlags = [
|
||||
"--with-app-name=librewolf"
|
||||
"--with-unsigned-addon-scopes=app,system"
|
||||
];
|
||||
|
||||
|
||||
@@ -13457,16 +13457,10 @@ with pkgs;
|
||||
|
||||
firefox = wrapFirefox firefox-unwrapped { };
|
||||
firefox-beta = wrapFirefox firefox-beta-unwrapped {
|
||||
nameSuffix = "-beta";
|
||||
desktopName = "Firefox Beta";
|
||||
wmClass = "firefox-beta";
|
||||
icon = "firefox-beta";
|
||||
};
|
||||
firefox-devedition = wrapFirefox firefox-devedition-unwrapped {
|
||||
nameSuffix = "-devedition";
|
||||
desktopName = "Firefox Developer Edition";
|
||||
wmClass = "firefox-devedition";
|
||||
icon = "firefox-devedition";
|
||||
};
|
||||
|
||||
firefox-mobile = callPackage ../applications/networking/browsers/firefox/mobile-config.nix { };
|
||||
|
||||
Reference in New Issue
Block a user