athens: add version test

This commit is contained in:
Paul Meyer 2023-12-24 09:45:34 +01:00
parent e9bd0e68af
commit 7ad281a1c3

View file

@ -1,6 +1,8 @@
{ lib
, fetchFromGitHub
, buildGoModule
, testers
, athens
}:
buildGoModule rec {
pname = "athens";
@ -25,6 +27,12 @@ buildGoModule rec {
mv $out/bin/proxy $out/bin/athens
'';
passthru = {
tests.version = testers.testVersion {
package = athens;
};
};
meta = with lib; {
description = "A Go module datastore and proxy";
homepage = "https://github.com/gomods/athens";