From af7323d1a8ca96d2cd623e628407223c2fad92a2 Mon Sep 17 00:00:00 2001 From: fortuneteller2k Date: Sat, 2 Jul 2022 13:51:25 +0000 Subject: [PATCH] discord: fix override --- .../networking/instant-messengers/discord/darwin.nix | 2 +- .../instant-messengers/discord/default.nix | 4 ++-- .../networking/instant-messengers/discord/linux.nix | 2 +- pkgs/top-level/all-packages.nix | 12 +++++++++--- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/discord/darwin.nix b/pkgs/applications/networking/instant-messengers/discord/darwin.nix index 368b4572aa67..aa1cfaa045ca 100644 --- a/pkgs/applications/networking/instant-messengers/discord/darwin.nix +++ b/pkgs/applications/networking/instant-messengers/discord/darwin.nix @@ -1,4 +1,4 @@ -{ pname, version, src, openasar, meta, stdenv, binaryName, desktopName, lib, undmg, withOpenASAR }: +{ pname, version, src, openasar, meta, stdenv, binaryName, desktopName, lib, undmg, withOpenASAR ? false }: stdenv.mkDerivation { inherit pname version src meta; diff --git a/pkgs/applications/networking/instant-messengers/discord/default.nix b/pkgs/applications/networking/instant-messengers/discord/default.nix index f6e291ab7f3e..87fad54f7bc6 100644 --- a/pkgs/applications/networking/instant-messengers/discord/default.nix +++ b/pkgs/applications/networking/instant-messengers/discord/default.nix @@ -1,4 +1,4 @@ -{ branch ? "stable", callPackage, fetchurl, lib, stdenv, withOpenASAR ? false }: +{ branch ? "stable", callPackage, fetchurl, lib, stdenv }: let versions = if stdenv.isLinux then { stable = "0.0.18"; @@ -67,7 +67,7 @@ let packages = (builtins.mapAttrs (_: value: callPackage package (value // { - inherit src version openasar withOpenASAR; + inherit src version openasar; meta = meta // { mainProgram = value.binaryName; }; }) ) diff --git a/pkgs/applications/networking/instant-messengers/discord/linux.nix b/pkgs/applications/networking/instant-messengers/discord/linux.nix index a68414978b02..846ac82d172b 100644 --- a/pkgs/applications/networking/instant-messengers/discord/linux.nix +++ b/pkgs/applications/networking/instant-messengers/discord/linux.nix @@ -5,7 +5,7 @@ , libXScrnSaver, libXcomposite, libXcursor, libXdamage, libXext, libXfixes , libXi, libXrandr, libXrender, libXtst, libxcb, libxshmfence, mesa, nspr, nss , pango, systemd, libappindicator-gtk3, libdbusmenu, writeScript -, common-updater-scripts, withOpenASAR }: +, common-updater-scripts, withOpenASAR ? false }: stdenv.mkDerivation rec { inherit pname version src meta; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 93e016e13c46..7fe9ae9727e4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -35501,15 +35501,21 @@ with pkgs; mpvc = callPackage ../applications/misc/mpvc { }; - discord = callPackage ../applications/networking/instant-messengers/discord { + discord = import ../applications/networking/instant-messengers/discord { + inherit lib stdenv; + inherit (pkgs) callPackage fetchurl; branch = "stable"; }; - discord-ptb = callPackage ../applications/networking/instant-messengers/discord { + discord-ptb = import ../applications/networking/instant-messengers/discord { + inherit lib stdenv; + inherit (pkgs) callPackage fetchurl; branch = "ptb"; }; - discord-canary = callPackage ../applications/networking/instant-messengers/discord { + discord-canary = import ../applications/networking/instant-messengers/discord { + inherit lib stdenv; + inherit (pkgs) callPackage fetchurl; branch = "canary"; };