mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-19 03:14:03 +00:00
gotop: 4.1.2 -> 4.1.3
This commit is contained in:
parent
48d63e924a
commit
8a43996124
@ -1,27 +1,34 @@
|
|||||||
{ lib, stdenv, buildGoModule, fetchFromGitHub }:
|
{ lib, stdenv, buildGoModule, fetchFromGitHub, installShellFiles }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "gotop";
|
pname = "gotop";
|
||||||
version = "4.1.2";
|
version = "4.1.3";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "xxxserxxx";
|
owner = "xxxserxxx";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "15bsxaxqxp17wsr0p9fkpvgfyqnhhwm3j8jxkvcs4cdw73qaxdsy";
|
hash = "sha256-oDM+dpAT1vDpp2NkD669hwbgw7HWJGFqhsql9PvbxSk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
proxyVendor = true;
|
proxyVendor = true;
|
||||||
vendorSha256 = "sha256-WwHaprq4+4uduiKpNu5iVcV6qJsYX/aSXJAJWpbDVqc=";
|
vendorSha256 = "sha256-WGLcpF1NqVQDiU3M9rQ555ZW3sDC3Szch+skTZgt0xg=";
|
||||||
|
|
||||||
ldflags = [ "-s" "-w" "-X main.Version=v${version}" ];
|
ldflags = [ "-s" "-w" "-X main.Version=v${version}" ];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
export HOME=$(mktemp -d)
|
export HOME=$(mktemp -d)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doCheck = !stdenv.isDarwin;
|
doCheck = !stdenv.isDarwin;
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
$out/bin/gotop --create-manpage > gotop.1
|
||||||
|
installManPage gotop.1
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A terminal based graphical activity monitor inspired by gtop and vtop";
|
description = "A terminal based graphical activity monitor inspired by gtop and vtop";
|
||||||
homepage = "https://github.com/xxxserxxx/gotop";
|
homepage = "https://github.com/xxxserxxx/gotop";
|
||||||
|
Loading…
Reference in New Issue
Block a user