2020-03-27 07:33:21 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2017-05-30 11:10:45 +00:00
|
|
|
|
2019-06-18 21:20:00 +00:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ctop";
|
2021-06-11 08:58:34 +00:00
|
|
|
version = "0.7.6";
|
2017-05-30 11:10:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bcicen";
|
2019-06-18 21:20:00 +00:00
|
|
|
repo = pname;
|
2021-06-11 08:58:34 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-ceRyYrqmgdTnV8m9LkLlR6iTrC5F81X/V3fWI2CiKBw=";
|
2017-05-30 11:10:45 +00:00
|
|
|
};
|
|
|
|
|
2021-06-11 08:58:34 +00:00
|
|
|
vendorSha256 = "sha256-UCeMy4iT0c2sTcCDPg0TIYCLYfrIUvHluUuGIpzluSg=";
|
2019-09-10 19:23:53 +00:00
|
|
|
|
2020-08-04 00:26:27 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-01-04 09:20:00 +00:00
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version} -X main.build=v${version}" ];
|
2017-05-30 11:10:45 +00:00
|
|
|
|
2020-03-27 07:33:21 +00:00
|
|
|
meta = with lib; {
|
2019-06-18 21:20:00 +00:00
|
|
|
description = "Top-like interface for container metrics";
|
|
|
|
homepage = "https://ctop.sh/";
|
2017-05-30 11:10:45 +00:00
|
|
|
license = licenses.mit;
|
2021-06-11 08:58:34 +00:00
|
|
|
maintainers = with maintainers; [ apeyroux marsam SuperSandro2000 ];
|
2017-05-30 11:10:45 +00:00
|
|
|
};
|
2020-07-31 03:58:04 +00:00
|
|
|
}
|