athens: 0.16.2 -> 0.17.0

Signed-off-by: Paul Meyer <katexochen0@gmail.com>
This commit is contained in:
Paul Meyer
2026-04-16 20:00:12 +02:00
parent 9d8105c624
commit b97e825f69
+17 -9
View File
@@ -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 = [