From 791b6ce2e8a0c12f9cbdaebc3d9d756a06f032a6 Mon Sep 17 00:00:00 2001 From: Paul Meyer Date: Fri, 1 Aug 2025 05:05:13 +0200 Subject: [PATCH] athens: add updateScript and versionCheckHook (#429812) --- pkgs/by-name/at/athens/package.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/at/athens/package.nix b/pkgs/by-name/at/athens/package.nix index 55ab92826851..f2980e7d0086 100644 --- a/pkgs/by-name/at/athens/package.nix +++ b/pkgs/by-name/at/athens/package.nix @@ -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";