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 12:00:16 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
2023-07-02 14:56:55 +00:00
, testers
, nats-top
2021-04-05 12:00:16 +00:00
}:
buildGoModule rec {
pname = "nats-top";
2024-08-23 01:28:01 +00:00
version = "0.6.2";
2021-04-05 12:00:16 +00:00
src = fetchFromGitHub {
owner = "nats-io";
repo = pname;
2023-04-08 21:16:06 +00:00
rev = "refs/tags/v${version}";
2024-08-23 01:28:01 +00:00
hash = "sha256-zOo+f4NVFvx9deV1QY7mCi6Q0EJRMRwPu12maFDlnCU=";
2021-04-05 12:00:16 +00:00
};
2024-08-23 01:28:01 +00:00
vendorHash = "sha256-oPapBYm3gJtPpVP0lmsVijAdjK6M8/kOx/7QIeInOlM=";
2021-04-05 12:00:16 +00:00
2023-07-02 14:55:19 +00:00
ldflags = [
"-s"
"-w"
"-X=main.version=${version}"
];
2023-07-02 14:56:55 +00:00
passthru.tests = {
version = testers.testVersion {
package = nats-top;
version = "v${version}";
};
};
2021-04-05 12:00:16 +00:00
meta = with lib; {
description = "top-like tool for monitoring NATS servers";
homepage = "https://github.com/nats-io/nats-top";
2023-04-08 21:16:06 +00:00
changelog = "https://github.com/nats-io/nats-top/releases/tag/v${version}";
2021-04-05 12:00:16 +00:00
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
2023-11-27 01:17:53 +00:00
mainProgram = "nats-top";
2021-04-05 12:00:16 +00:00
};
}