Merge pull request #241123 from figsoda/nats

nats-top: fix version
This commit is contained in:
Fabian Affolter
2023-07-02 20:32:31 +02:00
committed by GitHub
+15
View File
@@ -1,6 +1,8 @@
{ lib
, buildGoModule
, fetchFromGitHub
, testers
, nats-top
}:
buildGoModule rec {
@@ -16,6 +18,19 @@ buildGoModule rec {
vendorHash = "sha256-IhaeM/stU9O48reT/mUadSkZDz0JXKCXjSRw8TMesTY=";
ldflags = [
"-s"
"-w"
"-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";