2021-07-21 01:00:00 +01:00
|
|
|
{ lib, stdenv, buildGoModule, fetchFromGitHub }:
|
2018-04-12 15:15:13 +01:00
|
|
|
|
2020-03-03 09:20:00 +00:00
|
|
|
buildGoModule rec {
|
2019-04-10 21:22:48 +01:00
|
|
|
pname = "gotop";
|
2021-07-21 01:00:00 +01:00
|
|
|
version = "4.1.2";
|
2018-04-12 15:15:13 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-03-03 09:20:00 +00:00
|
|
|
owner = "xxxserxxx";
|
2019-04-10 21:22:48 +01:00
|
|
|
repo = pname;
|
2020-03-03 09:20:00 +00:00
|
|
|
rev = "v${version}";
|
2021-07-21 01:00:00 +01:00
|
|
|
sha256 = "15bsxaxqxp17wsr0p9fkpvgfyqnhhwm3j8jxkvcs4cdw73qaxdsy";
|
2018-04-12 15:15:13 +01:00
|
|
|
};
|
|
|
|
|
2020-08-15 01:57:56 +01:00
|
|
|
runVend = true;
|
2021-07-21 01:00:00 +01:00
|
|
|
vendorSha256 = "06hl1npwmy9dvpf4kljvw8lwwiigm52wf106lmf9k6k2gi5ikprz";
|
2020-03-03 09:20:00 +00:00
|
|
|
|
2021-07-21 14:37:14 +01:00
|
|
|
ldflags = [ "-s" "-w" "-X main.Version=v${version}" ];
|
2021-02-06 12:52:00 +00:00
|
|
|
|
2020-08-15 01:57:56 +01:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
2020-08-04 01:26:27 +01:00
|
|
|
|
2021-07-21 01:00:00 +01:00
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-04-12 15:15:13 +01:00
|
|
|
description = "A terminal based graphical activity monitor inspired by gtop and vtop";
|
2020-03-03 09:20:00 +00:00
|
|
|
homepage = "https://github.com/xxxserxxx/gotop";
|
2021-07-21 01:00:00 +01:00
|
|
|
changelog = "https://github.com/xxxserxxx/gotop/raw/v${version}/CHANGELOG.md";
|
2021-01-27 13:10:11 +00:00
|
|
|
license = licenses.mit;
|
2018-04-12 15:15:13 +01:00
|
|
|
maintainers = [ maintainers.magnetophon ];
|
2021-12-23 05:07:22 +00:00
|
|
|
broken = stdenv.isDarwin; # needs to update gopsutil to at least v3.21.3 to include https://github.com/shirou/gopsutil/pull/1042
|
2018-04-12 15:15:13 +01:00
|
|
|
};
|
2020-07-31 04:58:04 +01:00
|
|
|
}
|