From 9cb1661a00e58d7760e400313e237f4a19133a5a Mon Sep 17 00:00:00 2001 From: seth Date: Mon, 15 Jul 2024 14:30:31 -0400 Subject: [PATCH] hadolint-sarif: testers.testVersion -> versionCheckHook this results in less ugly recursion --- pkgs/by-name/ha/hadolint-sarif/package.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ha/hadolint-sarif/package.nix b/pkgs/by-name/ha/hadolint-sarif/package.nix index 5996be333c13..870d3d833acc 100644 --- a/pkgs/by-name/ha/hadolint-sarif/package.nix +++ b/pkgs/by-name/ha/hadolint-sarif/package.nix @@ -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 { }; };