Merge pull request #110227 from zowoq/gdu

gdu: 3.0.0 -> 4.2.0
This commit is contained in:
Sandro 2021-01-21 09:23:07 +01:00 committed by GitHub
commit ad7347cfd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;