From b97e825f69d8b26f669f35eff908f7181747e392 Mon Sep 17 00:00:00 2001 From: Paul Meyer Date: Thu, 16 Apr 2026 20:00:12 +0200 Subject: [PATCH] athens: 0.16.2 -> 0.17.0 Signed-off-by: Paul Meyer --- pkgs/by-name/at/athens/package.nix | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/pkgs/by-name/at/athens/package.nix b/pkgs/by-name/at/athens/package.nix index 7a83c294b088..c93a9bfd8819 100644 --- a/pkgs/by-name/at/athens/package.nix +++ b/pkgs/by-name/at/athens/package.nix @@ -1,23 +1,31 @@ { lib, fetchFromGitHub, - buildGoModule, + # Requires Go 1.26, drop when that's the default. + buildGo126Module, nix-update-script, versionCheckHook, + applyPatches, }: -buildGoModule (finalAttrs: { +buildGo126Module (finalAttrs: { pname = "athens"; - version = "0.16.2"; + version = "0.17.0"; - src = fetchFromGitHub { - owner = "gomods"; - repo = "athens"; - tag = "v${finalAttrs.version}"; - hash = "sha256-Mv0fJ5EiU/Nxakr1sLx2rcJnQ9SEjFMn+2Gf4qsnN3w="; + src = applyPatches { + src = fetchFromGitHub { + owner = "gomods"; + repo = "athens"; + tag = "v${finalAttrs.version}"; + hash = "sha256-4KCPYqLtqz46zr5+LB4CyG4ZQrjQaPgMEhCuGOWIJKg="; + }; + # Trim the patch version, not needed anyway. + postPatch = '' + sed -i 's/go 1.26.2/go 1.26/' go.mod + ''; }; - vendorHash = "sha256-bn3He7ImXxrl+Or2pqzVpM8VxbfqDDupwtZbdSMd4HI="; + vendorHash = "sha256-he7GNkCfqLgOXuCTahvqOnwW5TpbYjlCMfMGfKGwYZ4="; env.CGO_ENABLED = "0"; ldflags = [