Unverified Commit 0971917c authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

discordo: 0-unstable-2025-12-06 -> 0-unstable-2026-01-23 (#476153)

parents e75f87a4 e5d12e12
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -24521,6 +24521,12 @@
    github = "siph";
    githubId = 6619112;
  };
  siphc = {
    name = "siphc";
    github = "siphc";
    githubId = 42943030;
    email = "ayfpan@ucla.edu";
  };
  sir4ur0n = {
    github = "sir4ur0n";
    githubId = 1204125;
+16 −9
Original line number Diff line number Diff line
@@ -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";
  };
})