discord: fix override

This commit is contained in:
fortuneteller2k 2022-07-02 13:51:25 +00:00
parent 904cf8a5ee
commit af7323d1a8
4 changed files with 13 additions and 7 deletions

View File

@ -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;

View File

@ -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; };
})
)

View File

@ -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;

View File

@ -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";
};