From 0ee138df823fc200f18cbdcce22affb5396107e7 Mon Sep 17 00:00:00 2001 From: seth Date: Mon, 15 Jul 2024 14:25:42 -0400 Subject: [PATCH] clippy-sarif: testers.testVersion -> versionCheckHook this results in less ugly recursion --- pkgs/by-name/cl/clippy-sarif/package.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/cl/clippy-sarif/package.nix b/pkgs/by-name/cl/clippy-sarif/package.nix index 819dd6177dac..6b4a1aa1afdd 100644 --- a/pkgs/by-name/cl/clippy-sarif/package.nix +++ b/pkgs/by-name/cl/clippy-sarif/package.nix @@ -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 { }; };