nixpkgs/pkgs/tools/system/gotop/default.nix

29 lines
705 B
Nix
Raw Normal View History

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