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