sarif-fmt: testers.testVersion -> versionCheckHook

this results in less ugly recursion
This commit is contained in:
seth
2024-07-15 14:52:53 -04:00
parent 870b2353d2
commit f3d6c633b4
+4 -3
View File
@@ -4,8 +4,7 @@
fetchCrate,
rustPlatform,
nix-update-script,
sarif-fmt,
testers,
versionCheckHook,
}:
rustPlatform.buildRustPackage rec {
pname = "sarif-fmt";
@@ -33,8 +32,10 @@ rustPlatform.buildRustPackage rec {
"--skip=test_clipp"
];
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
passthru = {
tests.version = testers.testVersion { package = sarif-fmt; };
updateScript = nix-update-script { };
};