Unverified Commit 5032bf8a authored by siphc's avatar siphc
Browse files

discordo: 0-unstable-2025-12-06 -> 0-unstable-2026-01-23

parent 50cfe00f
Loading
Loading
Loading
Loading
+12 −8
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
        ]
      }