2021-01-25 00:26:54 -08:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2018-04-12 07:15:13 -07:00
|
|
|
|
2020-03-03 01:20:00 -08:00
|
|
|
buildGoModule rec {
|
2019-04-10 13:22:48 -07:00
|
|
|
pname = "gotop";
|
2021-02-06 07:09:25 -08:00
|
|
|
version = "4.1.1";
|
2018-04-12 07:15:13 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-03-03 01:20:00 -08:00
|
|
|
owner = "xxxserxxx";
|
2019-04-10 13:22:48 -07:00
|
|
|
repo = pname;
|
2020-03-03 01:20:00 -08:00
|
|
|
rev = "v${version}";
|
2021-02-06 07:09:25 -08:00
|
|
|
sha256 = "sha256-3t6I4ah9gUmPlIBRL86BdgiUaMNiKNEeoUSRMASz1Yc=";
|
2018-04-12 07:15:13 -07:00
|
|
|
};
|
|
|
|
|
2020-08-14 17:57:56 -07:00
|
|
|
runVend = true;
|
2021-02-06 07:09:25 -08:00
|
|
|
vendorSha256 = "sha256-GcIaUIuTiSY1aKxRtclfl7hMNaZZx4uoVG7ahjF/4Hs=";
|
2020-03-03 01:20:00 -08:00
|
|
|
|
2021-02-06 04:52:00 -08:00
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X main.Version=v${version}" ];
|
|
|
|
|
2020-08-14 17:57:56 -07:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
2020-08-03 17:26:27 -07:00
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2018-04-12 07:15:13 -07:00
|
|
|
description = "A terminal based graphical activity monitor inspired by gtop and vtop";
|
2020-03-03 01:20:00 -08:00
|
|
|
homepage = "https://github.com/xxxserxxx/gotop";
|
2021-01-27 05:10:11 -08:00
|
|
|
changelog = "https://github.com/xxxserxxx/gotop/blob/v${version}/CHANGELOG.md";
|
|
|
|
license = licenses.mit;
|
2018-04-12 07:15:13 -07:00
|
|
|
maintainers = [ maintainers.magnetophon ];
|
2018-07-23 04:45:28 -07:00
|
|
|
platforms = platforms.unix;
|
2018-04-12 07:15:13 -07:00
|
|
|
};
|
2020-07-30 20:58:04 -07:00
|
|
|
}
|