mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 05:37:40 +03:00
nats-top: add version test
This commit is contained in:
parent
b538ea0971
commit
babe3c5d59
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user