adu: migrate to versionCheckHook

This commit is contained in:
Fabian Affolter 2025-07-07 22:10:51 +02:00
parent 09815bc4bb
commit c4ac7eb951

View File

@ -4,8 +4,7 @@
buildGoModule,
fetchFromGitHub,
installShellFiles,
testers,
gdu,
versionCheckHook,
}:
buildGoModule rec {
@ -21,7 +20,10 @@ buildGoModule rec {
vendorHash = "sha256-aKhHC3sPRyi/l9BxeUgx+3TdYulb0cI9WxuPvbLoswg=";
nativeBuildInputs = [ installShellFiles ];
nativeBuildInputs = [
installShellFiles
versionCheckHook
];
ldflags = [
"-s"
@ -46,7 +48,7 @@ buildGoModule rec {
"-skip=TestAnalyzePathWithIgnoring"
];
passthru.tests.version = testers.testVersion { package = gdu; };
doInstallCheck = true;
meta = {
description = "Disk usage analyzer with console interface";