2020-03-03 10:20:00 +01:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub }:
|
2018-04-12 16:15:13 +02:00
|
|
|
|
2020-03-03 10:20:00 +01:00
|
|
|
buildGoModule rec {
|
2019-04-10 22:22:48 +02:00
|
|
|
pname = "gotop";
|
2020-06-14 18:28:11 +02:00
|
|
|
version = "4.0.1";
|
2018-04-12 16:15:13 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-03-03 10:20:00 +01:00
|
|
|
owner = "xxxserxxx";
|
2019-04-10 22:22:48 +02:00
|
|
|
repo = pname;
|
2020-03-03 10:20:00 +01:00
|
|
|
rev = "v${version}";
|
2020-06-14 18:28:11 +02:00
|
|
|
sha256 = "10qfzmq1wdgpvv319khzicalix1x4fqava0wry3bzz84k5c9dabs";
|
2018-04-12 16:15:13 +02:00
|
|
|
};
|
|
|
|
|
2020-08-15 02:57:56 +02:00
|
|
|
runVend = true;
|
|
|
|
vendorSha256 = "09vdhdgj74ifdhl6rmxddkvk7ls26jn8gswzcxf9389zkjzi7822";
|
2020-03-03 10:20:00 +01:00
|
|
|
|
2020-08-15 02:57:56 +02:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
2020-08-04 02:26:27 +02:00
|
|
|
|
2018-04-12 16:15:13 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A terminal based graphical activity monitor inspired by gtop and vtop";
|
2020-03-03 10:20:00 +01:00
|
|
|
homepage = "https://github.com/xxxserxxx/gotop";
|
2018-04-12 16:15:13 +02:00
|
|
|
license = licenses.agpl3;
|
|
|
|
maintainers = [ maintainers.magnetophon ];
|
2018-07-23 13:45:28 +02:00
|
|
|
platforms = platforms.unix;
|
2018-04-12 16:15:13 +02:00
|
|
|
};
|
2020-07-31 05:58:04 +02:00
|
|
|
}
|