zowoq 2021-01-21 07:34:34 +10:00
parent 083d8f8bd6
commit 620868fbdb
1 changed files with 10 additions and 3 deletions

View File

@ -2,23 +2,30 @@
, stdenv
, buildGoModule
, fetchFromGitHub
, installShellFiles
}:
buildGoModule rec {
pname = "gdu";
version = "3.0.0";
version = "4.2.0";
src = fetchFromGitHub {
owner = "dundee";
repo = pname;
rev = "v${version}";
sha256 = "0sfb8bxvdd8r05d0bgfcaw6dpbky7f4fgf0dbly7k7sgl29hkafy";
sha256 = "0ppsz7ys08lmg5s7lszqc2zcp2vjm54aai3yr3sb4jf3knbmyg5g";
};
vendorSha256 = "0w3k23kly8g9mf8a300xz6bv7g1m2nlp5f112k4viyi9zy6vqbv0";
vendorSha256 = "058h71gmgi3n4b697myi5890arzw8fkzmxlm1aiwzyfh3k9iv0wh";
buildFlagsArray = [ "-ldflags=-s -w -X github.com/dundee/gdu/build.Version=${version}" ];
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installManPage gdu.1
'';
# tests fail if the version is set
doCheck = false;