yamlfmt: prefer versionCheckHook over testers.testVersion

This commit is contained in:
Kenichi Kamiya
2025-08-03 19:58:14 +09:00
parent 699af90c19
commit 06ad68fa17
+6 -5
View File
@@ -2,8 +2,7 @@
lib,
buildGoModule,
fetchFromGitHub,
testers,
yamlfmt,
versionCheckHook,
}:
buildGoModule (finalAttrs: {
@@ -38,9 +37,11 @@ buildGoModule (finalAttrs: {
# https://github.com/google/yamlfmt/issues/256
checkFlags = [ "-run=!S/TestNodeRoundtrip" ];
passthru.tests.version = testers.testVersion {
package = yamlfmt;
};
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
versionCheckProgramArg = "--version";
meta = {
description = "Extensible command line tool or library to format yaml files";