mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-08 21:24:03 +00:00
hadolint-sarif: testers.testVersion -> versionCheckHook
this results in less ugly recursion
This commit is contained in:
parent
8960ca71be
commit
9cb1661a00
@ -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 { };
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user