Commit 9df48799 authored by Ryan Hendrickson's avatar Ryan Hendrickson
Browse files

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: default avatarXandor Schiefer <me@xandor.co.za>
parent cc845261
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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}"
+2 −1
Original line number Diff line number Diff line
@@ -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;
+2 −1
Original line number Diff line number Diff line
@@ -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;
+0 −1
Original line number Diff line number Diff line
@@ -28,7 +28,6 @@
    };

    extraConfigureFlags = [
      "--with-app-name=${pname}"
      "--with-app-basename=${applicationName}"
      "--with-unsigned-addon-scopes=app,system"
      "--enable-proxy-bypass-protection"
+0 −1
Original line number Diff line number Diff line
@@ -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"
  ];

Loading