jsonfmt: migrate to versionCheckHook

This commit is contained in:
Fabian Affolter
2025-12-25 11:55:56 +01:00
parent 500547117d
commit b86dacdb52
+4 -7
View File
@@ -2,8 +2,7 @@
lib,
buildGoModule,
fetchFromGitHub,
testers,
jsonfmt,
versionCheckHook,
}:
buildGoModule rec {
@@ -19,17 +18,15 @@ buildGoModule rec {
vendorHash = "sha256-QcljmDsz5LsXfHaXNVBU7IIVVgkm3Vfnirchx5ZOMSg=";
nativeInstallCheckInputs = [ versionCheckHook ];
ldflags = [
"-s"
"-w"
"-X=main.version=${version}"
];
passthru.tests = {
version = testers.testVersion {
package = jsonfmt;
};
};
doInstallCheck = true;
meta = {
description = "Formatter for JSON files";