athens: add updateScript and versionCheckHook (#429812)

This commit is contained in:
Paul Meyer
2025-08-01 11:05:13 +08:00
committed by GitHub
parent 3616d13b9c
commit 791b6ce2e8
+6 -5
View File
@@ -2,8 +2,8 @@
lib,
fetchFromGitHub,
buildGoModule,
testers,
athens,
nix-update-script,
versionCheckHook,
}:
buildGoModule (finalAttrs: {
@@ -31,9 +31,10 @@ buildGoModule (finalAttrs: {
mv $out/bin/proxy $out/bin/athens
'';
passthru = {
tests.version = testers.testVersion { package = athens; };
};
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Go module datastore and proxy";