diff options
author | Arian-D <ArianXDehghani@gmail.com> | 2023-01-14 01:28:53 -0800 |
---|---|---|
committer | Arian-D <ArianXDehghani@gmail.com> | 2023-04-07 22:08:13 -0700 |
commit | d0242fd7fe1a26a9909d951c2d5d79533c5f215d (patch) | |
tree | d64a085055e06fffa765cd26acb8919ce2f3bd93 /pkgs/applications/networking/discordo | |
parent | 80d3f4849cb34004b8eb6536b561552092e1304e (diff) |
discordo: init at unstable-2023-03-07
Diffstat (limited to 'pkgs/applications/networking/discordo')
-rw-r--r-- | pkgs/applications/networking/discordo/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/applications/networking/discordo/default.nix b/pkgs/applications/networking/discordo/default.nix new file mode 100644 index 000000000000..c7de76d279a8 --- /dev/null +++ b/pkgs/applications/networking/discordo/default.nix @@ -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 ]; + }; +} |