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