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