nixpkgs/pkgs/tools/system/nats-top/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
910 B
Nix
Raw Normal View History

2021-04-05 15:00:16 +03:00
{ lib
, buildGoModule
, fetchFromGitHub
2023-07-02 17:56:55 +03:00
, testers
, nats-top
2021-04-05 15:00:16 +03:00
}:
buildGoModule rec {
pname = "nats-top";
2023-07-02 16:31:40 +03:00
version = "0.6.1";
2021-04-05 15:00:16 +03:00
src = fetchFromGitHub {
owner = "nats-io";
repo = pname;
2023-04-09 00:16:06 +03:00
rev = "refs/tags/v${version}";
2023-07-02 16:31:40 +03:00
hash = "sha256-YQNIEhs/KNJp7184zBk0NZyXRWLQDaySZBJWe11vI9E=";
2021-04-05 15:00:16 +03:00
};
2023-07-02 16:31:40 +03:00
vendorHash = "sha256-IhaeM/stU9O48reT/mUadSkZDz0JXKCXjSRw8TMesTY=";
2021-04-05 15:00:16 +03:00
2023-07-02 17:55:19 +03:00
ldflags = [
"-s"
"-w"
"-X=main.version=${version}"
];
2023-07-02 17:56:55 +03:00
passthru.tests = {
version = testers.testVersion {
package = nats-top;
version = "v${version}";
};
};
2021-04-05 15:00:16 +03:00
meta = with lib; {
description = "top-like tool for monitoring NATS servers";
homepage = "https://github.com/nats-io/nats-top";
2023-04-09 00:16:06 +03:00
changelog = "https://github.com/nats-io/nats-top/releases/tag/v${version}";
2021-04-05 15:00:16 +03:00
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
2023-11-27 04:17:53 +03:00
mainProgram = "nats-top";
2021-04-05 15:00:16 +03:00
};
}