mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 16:45:49 +01:00
Merge pull request #210667 from Arian-D/discordo
This commit is contained in:
commit
0885905707
3 changed files with 47 additions and 0 deletions
|
@ -1180,6 +1180,12 @@
|
|||
githubId = 58516559;
|
||||
name = "Alexander Rezvov";
|
||||
};
|
||||
arian-d = {
|
||||
email = "arianxdehghani@gmail.com";
|
||||
github = "arian-d";
|
||||
githubId = 40076285;
|
||||
name = "Arian Dehghani";
|
||||
};
|
||||
arianvp = {
|
||||
email = "arian.vanputten@gmail.com";
|
||||
github = "arianvp";
|
||||
|
|
39
pkgs/applications/networking/discordo/default.nix
Normal file
39
pkgs/applications/networking/discordo/default.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub, nix-update-script, makeWrapper, xsel
|
||||
, wl-clipboard }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "discordo";
|
||||
version = "unstable-2023-04-07";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ayn2op";
|
||||
repo = pname;
|
||||
rev = "f8c58057945b1ded2f78dc0956ea25aa281a0b31";
|
||||
hash = "sha256-FUSPQK4rB0J89s+I7yhF8SQ/Q9uygQSCF9o6ltYxOk4=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-fLhyyIChqh+eEzht3CSLPfx6glw0YhiTb9PsbWJafWQ=";
|
||||
|
||||
CGO_ENABLED = 0;
|
||||
|
||||
ldflags = [ "-s" "-w" ];
|
||||
|
||||
# Clipboard support on X11 and Wayland
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/discordo \
|
||||
--prefix PATH : ${lib.makeBinPath [ xsel wl-clipboard ]}
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script {
|
||||
extraArgs = [ "--version=branch" ];
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "A lightweight, secure, and feature-rich Discord terminal client";
|
||||
homepage = "https://github.com/ayn2op/discordo";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.arian-d ];
|
||||
};
|
||||
}
|
|
@ -39518,6 +39518,8 @@ with pkgs;
|
|||
branch = "stable";
|
||||
};
|
||||
|
||||
discordo = callPackage ../applications/networking/discordo/default.nix { };
|
||||
|
||||
discord-ptb = import ../applications/networking/instant-messengers/discord {
|
||||
inherit lib stdenv;
|
||||
inherit (pkgs) callPackage fetchurl;
|
||||
|
|
Loading…
Reference in a new issue