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

32 lines
848 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2018-04-12 15:15:13 +01:00
buildGoModule rec {
2019-04-10 21:22:48 +01:00
pname = "gotop";
2021-02-06 15:09:25 +00:00
version = "4.1.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}";
2021-02-06 15:09:25 +00:00
sha256 = "sha256-3t6I4ah9gUmPlIBRL86BdgiUaMNiKNEeoUSRMASz1Yc=";
2018-04-12 15:15:13 +01:00
};
2020-08-15 01:57:56 +01:00
runVend = true;
2021-02-06 15:09:25 +00:00
vendorSha256 = "sha256-GcIaUIuTiSY1aKxRtclfl7hMNaZZx4uoVG7ahjF/4Hs=";
2021-02-06 12:52:00 +00:00
buildFlagsArray = [ "-ldflags=-s -w -X main.Version=v${version}" ];
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";
changelog = "https://github.com/xxxserxxx/gotop/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
2018-04-12 15:15:13 +01:00
maintainers = [ maintainers.magnetophon ];
platforms = platforms.unix;
2018-04-12 15:15:13 +01:00
};
}