From 5a5a90f696b3ee59793c55b175f0fcf0d065288d Mon Sep 17 00:00:00 2001 From: George Macon Date: Tue, 30 Sep 2025 20:27:47 -0400 Subject: [PATCH] cwtch: 0.1.7 -> 0.2.1 Changelogs: - v0.1.8: https://git.openprivacy.ca/cwtch.im/autobindings/releases/tag/v0.1.8 - v0.2.0: https://git.openprivacy.ca/cwtch.im/autobindings/releases/tag/v0.2.0 - v0.2.0: https://git.openprivacy.ca/cwtch.im/autobindings/releases/tag/v0.2.1 --- pkgs/by-name/cw/cwtch/package.nix | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/pkgs/by-name/cw/cwtch/package.nix b/pkgs/by-name/cw/cwtch/package.nix index 83d3c210d8bf..993cc88b9e17 100644 --- a/pkgs/by-name/cw/cwtch/package.nix +++ b/pkgs/by-name/cw/cwtch/package.nix @@ -1,26 +1,21 @@ { buildGoModule, fetchgit, + nix-update-script, lib, }: buildGoModule rec { pname = "libcwtch"; - version = "0.1.7"; + version = "0.2.1"; # This Gitea instance has archive downloads disabled, so: fetchgit src = fetchgit { url = "https://git.openprivacy.ca/cwtch.im/autobindings.git"; rev = "v${version}"; - hash = "sha256-QHEaf3xm6SIHLnQamf0cUrKJ/A1v0iFaaGsMg33uIBs="; + hash = "sha256-Il4jADldw/tnRRiecCUrddKEvJ8WHvyT4s4zxSXqrnM="; }; - vendorHash = "sha256-pnAdUFG1G0Bi/e9KNVX0WwloJy8xQ25YVFnGerRGy9A="; - overrideModAttrs = ( - old: { - preBuild = '' - make lib.go - ''; - } - ); + proxyVendor = true; + vendorHash = "sha256-2Bs4cBQ+z5fqEvQ3xu31EngzdUZzZIl0sFsSjD60n2A="; postPatch = '' substituteInPlace Makefile \ @@ -42,6 +37,8 @@ buildGoModule rec { runHook postInstall ''; + passthru.updateScript = nix-update-script { }; + meta = { description = "Decentralized, privacy-preserving, multi-party messaging protocol"; homepage = "https://cwtch.im/";