nats-top: add version test

This commit is contained in:
figsoda 2023-07-02 10:56:55 -04:00
parent b538ea0971
commit babe3c5d59

View File

@ -1,6 +1,8 @@
{ lib
, buildGoModule
, fetchFromGitHub
, testers
, nats-top
}:
buildGoModule rec {
@ -22,6 +24,13 @@ buildGoModule rec {
"-X=main.version=${version}"
];
passthru.tests = {
version = testers.testVersion {
package = nats-top;
version = "v${version}";
};
};
meta = with lib; {
description = "top-like tool for monitoring NATS servers";
homepage = "https://github.com/nats-io/nats-top";