From ec4ef6302c05ce4b5240fe657aade79f56c911a3 Mon Sep 17 00:00:00 2001 From: Defelo Date: Thu, 22 May 2025 23:34:21 +0200 Subject: [PATCH] tokei: add versionCheckHook --- pkgs/by-name/to/tokei/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/to/tokei/package.nix b/pkgs/by-name/to/tokei/package.nix index 932a7a616274..0564e498891f 100644 --- a/pkgs/by-name/to/tokei/package.nix +++ b/pkgs/by-name/to/tokei/package.nix @@ -5,6 +5,7 @@ rustPlatform, libiconv, zlib, + versionCheckHook, }: rustPlatform.buildRustPackage (finalAttrs: { @@ -28,6 +29,10 @@ rustPlatform.buildRustPackage (finalAttrs: { # enable all output formats buildFeatures = [ "all" ]; + nativeInstallCheckInputs = [ versionCheckHook ]; + versionCheckProgramArg = "--version"; + doInstallCheck = true; + meta = { description = "Count your code, quickly"; longDescription = ''