nixpkgs-suyu/pkgs/tools/system/ctop/default.nix

25 lines
645 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2017-05-30 13:10:45 +02:00
2019-06-18 23:20:00 +02:00
buildGoModule rec {
pname = "ctop";
version = "0.7.3";
2017-05-30 13:10:45 +02:00
src = fetchFromGitHub {
owner = "bcicen";
2019-06-18 23:20:00 +02:00
repo = pname;
rev = "v${version}";
sha256 = "0y72l65xgfqrgghzbm1zcy776l5m31z0gn6vfr689zyi3k3f4kh8";
2017-05-30 13:10:45 +02:00
};
modSha256 = "0wxv6yzlgki7047qszx9p9xpph95bg097jkgaa0b3wbpx8vg7qml";
2019-09-10 21:23:53 +02:00
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version} -X main.build=v${version}" ];
2017-05-30 13:10:45 +02:00
meta = with lib; {
2019-06-18 23:20:00 +02:00
description = "Top-like interface for container metrics";
homepage = "https://ctop.sh/";
2017-05-30 13:10:45 +02:00
license = licenses.mit;
2019-06-18 23:20:00 +02:00
maintainers = with maintainers; [ apeyroux marsam ];
2017-05-30 13:10:45 +02:00
};
}