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 = ''