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

27 lines
733 B
Nix
Raw Normal View History

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