hadolint-sarif: testers.testVersion -> versionCheckHook

this results in less ugly recursion
This commit is contained in:
seth 2024-07-15 14:30:31 -04:00
parent 8960ca71be
commit 9cb1661a00
No known key found for this signature in database
GPG Key ID: D31BD0D494BBEE86

View File

@ -2,9 +2,8 @@
lib,
fetchCrate,
rustPlatform,
hadolint-sarif,
nix-update-script,
testers,
versionCheckHook,
}:
rustPlatform.buildRustPackage rec {
pname = "hadolint-sarif";
@ -17,8 +16,10 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-bwEQ9lZXvZL6JN24N8gRdbV5gcFiH1fQ59PQILfW1z8=";
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
passthru = {
tests.version = testers.testVersion { package = hadolint-sarif; };
updateScript = nix-update-script { };
};