clippy-sarif: testers.testVersion -> versionCheckHook

this results in less ugly recursion
This commit is contained in:
seth
2024-07-15 14:25:44 -04:00
parent 22ccac6ba7
commit 0ee138df82
+4 -3
View File
@@ -3,9 +3,8 @@
fetchCrate,
rustPlatform,
clippy,
clippy-sarif,
nix-update-script,
testers,
versionCheckHook,
}:
rustPlatform.buildRustPackage rec {
pname = "clippy-sarif";
@@ -18,8 +17,10 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-O0bLgj7rWwbEswVMfexsBGgJyObxseOohYht21Y6HpU=";
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
passthru = {
tests.version = testers.testVersion { package = clippy-sarif; };
updateScript = nix-update-script { };
};