2020-03-27 08:33:21 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2017-05-30 13:10:45 +02:00
|
|
|
|
2019-06-18 23:20:00 +02:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ctop";
|
2020-11-11 02:33:19 +01:00
|
|
|
version = "0.7.5";
|
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}";
|
2020-11-11 02:33:19 +01:00
|
|
|
sha256 = "0mm1gapnz67mwc346jr530xwpiajq1b2f295s8gz5nrb2a23mqln";
|
2017-05-30 13:10:45 +02:00
|
|
|
};
|
|
|
|
|
2020-10-29 13:41:41 +01:00
|
|
|
vendorSha256 = "0a5rwnf251jbp7jz2ln8z9hqp0112c6kx0y09nncvlcki35qq9sh";
|
2019-09-10 21:23:53 +02:00
|
|
|
|
2020-08-04 02:26:27 +02:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-01-04 10:20:00 +01:00
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version} -X main.build=v${version}" ];
|
2017-05-30 13:10:45 +02:00
|
|
|
|
2020-03-27 08:33:21 +01: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
|
|
|
};
|
2020-07-31 05:58:04 +02:00
|
|
|
}
|