From 620868fbdb267c8331b284dd856060c79648bcf8 Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Thu, 21 Jan 2021 07:34:34 +1000 Subject: [PATCH] gdu: 3.0.0 -> 4.2.0 https://github.com/dundee/gdu/releases/tag/v4.0.0 https://github.com/dundee/gdu/releases/tag/v4.1.0 https://github.com/dundee/gdu/releases/tag/v4.2.0 --- pkgs/tools/system/gdu/default.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/system/gdu/default.nix b/pkgs/tools/system/gdu/default.nix index 72ee7d5ebc6..53e69cd8cd6 100644 --- a/pkgs/tools/system/gdu/default.nix +++ b/pkgs/tools/system/gdu/default.nix @@ -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;