diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index cec60edf0855..69a83c07c5e3 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -24521,6 +24521,12 @@ github = "siph"; githubId = 6619112; }; + siphc = { + name = "siphc"; + github = "siphc"; + githubId = 42943030; + email = "ayfpan@ucla.edu"; + }; sir4ur0n = { github = "sir4ur0n"; githubId = 1204125; diff --git a/pkgs/by-name/di/discordo/package.nix b/pkgs/by-name/di/discordo/package.nix index ea83a11a4100..a1c23deca917 100644 --- a/pkgs/by-name/di/discordo/package.nix +++ b/pkgs/by-name/di/discordo/package.nix @@ -4,31 +4,36 @@ buildGoModule, fetchFromGitHub, nix-update-script, + libx11, makeWrapper, - xsel, wl-clipboard, }: buildGoModule (finalAttrs: { pname = "discordo"; - version = "0-unstable-2025-12-06"; + version = "0-unstable-2026-01-23"; src = fetchFromGitHub { owner = "ayn2op"; repo = "discordo"; - rev = "a9359209369cf816bdab76d4feeb8270a5410040"; - hash = "sha256-Dudlghaz3RGZaHSExyzmeVUZufU8w1ONSE3nh/GINHQ="; + rev = "08bda9e40541d32e9313405824550cff41f60912"; + hash = "sha256-80ZG1lQV4/kf4zqW2ANkRIJSZbjwCKsV0TTwSZuoMGk="; }; - vendorHash = "sha256-IFZcBq58qLRmU0eDrPNh/vEL3L+FZX1AHS09vtWmRaQ="; + vendorHash = "sha256-quRRGf9eVCK7OYgPhBn+qM6WTUGra9I2eUxkRbCXxB8="; - env.CGO_ENABLED = 0; + env.CGO_ENABLED = 1; ldflags = [ "-s" ]; - # Clipboard support on X11 and Wayland + # Clipboard support on X11 + buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ + libx11 + ]; + + # Clipboard support on Wayland nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ makeWrapper ]; @@ -37,7 +42,6 @@ buildGoModule (finalAttrs: { wrapProgram $out/bin/discordo \ --prefix PATH : ${ lib.makeBinPath [ - xsel wl-clipboard ] } @@ -51,7 +55,10 @@ buildGoModule (finalAttrs: { description = "Lightweight, secure, and feature-rich Discord terminal client"; homepage = "https://github.com/ayn2op/discordo"; license = lib.licenses.gpl3Plus; - maintainers = with lib.maintainers; [ arian-d ]; + maintainers = with lib.maintainers; [ + arian-d + siphc + ]; mainProgram = "discordo"; }; })