diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/system/gdu/default.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/system/gdu/default.nix | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/nixpkgs/pkgs/tools/system/gdu/default.nix b/nixpkgs/pkgs/tools/system/gdu/default.nix index cbc8c759c707..1b6f44fd700b 100644 --- a/nixpkgs/pkgs/tools/system/gdu/default.nix +++ b/nixpkgs/pkgs/tools/system/gdu/default.nix @@ -3,22 +3,26 @@ , buildGoModule , fetchFromGitHub , installShellFiles +, testers +, gdu }: buildGoModule rec { pname = "gdu"; - version = "5.15.0"; + version = "5.25.0"; src = fetchFromGitHub { owner = "dundee"; repo = pname; - rev = "v${version}"; - sha256 = "sha256-XfBmxAuhGt5SYl4D8pf+FnB3R5Hg/G72r4pYgIrL2mg="; + rev = "refs/tags/v${version}"; + hash = "sha256-TtfTIG0XlEDXVjIZ6Vpy/Z5StXcxyaEocwoe7M75YDw="; }; - vendorSha256 = "sha256-w+nOoEtEtRjXakrVV3aLj+clhyqgL5cJ6iu689cJeKs="; + vendorHash = "sha256-DkH1H2XvVlDMFuFSbCmhPMC709upPvXhpzlEgNq5zoA="; - nativeBuildInputs = [ installShellFiles ]; + nativeBuildInputs = [ + installShellFiles + ]; ldflags = [ "-s" @@ -36,6 +40,10 @@ buildGoModule rec { doCheck = !stdenv.isDarwin; + passthru.tests.version = testers.testVersion { + package = gdu; + }; + meta = with lib; { description = "Disk usage analyzer with console interface"; longDescription = '' @@ -44,8 +52,8 @@ buildGoModule rec { the performance gain is not so huge. ''; homepage = "https://github.com/dundee/gdu"; + changelog = "https://github.com/dundee/gdu/releases/tag/v${version}"; license = with licenses; [ mit ]; - maintainers = [ maintainers.fab maintainers.zowoq ]; - platforms = platforms.unix; + maintainers = with maintainers; [ fab zowoq ]; }; } |