2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "gotop";
|
2021-02-13 14:23:35 +00:00
|
|
|
version = "4.1.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "xxxserxxx";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-02-13 14:23:35 +00:00
|
|
|
sha256 = "sha256-3t6I4ah9gUmPlIBRL86BdgiUaMNiKNEeoUSRMASz1Yc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
runVend = true;
|
2021-02-13 14:23:35 +00:00
|
|
|
vendorSha256 = "sha256-GcIaUIuTiSY1aKxRtclfl7hMNaZZx4uoVG7ahjF/4Hs=";
|
|
|
|
|
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X main.Version=v${version}" ];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A terminal based graphical activity monitor inspired by gtop and vtop";
|
|
|
|
homepage = "https://github.com/xxxserxxx/gotop";
|
2021-02-05 17:12:51 +00:00
|
|
|
changelog = "https://github.com/xxxserxxx/gotop/blob/v${version}/CHANGELOG.md";
|
|
|
|
license = licenses.mit;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.magnetophon ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
2020-08-20 17:08:02 +00:00
|
|
|
}
|