diff --git a/pkgs/by-name/ta/taplo/package.nix b/pkgs/by-name/ta/taplo/package.nix index 5380ba690547..7ef4800ba1c3 100644 --- a/pkgs/by-name/ta/taplo/package.nix +++ b/pkgs/by-name/ta/taplo/package.nix @@ -7,6 +7,7 @@ openssl, withLsp ? true, installShellFiles, + versionCheckHook, }: rustPlatform.buildRustPackage (finalAttrs: { @@ -45,6 +46,10 @@ rustPlatform.buildRustPackage (finalAttrs: { --zsh <($out/bin/taplo completions zsh) ''; + nativeInstallCheckInputs = [ versionCheckHook ]; + versionCheckProgramArg = "--version"; + doInstallCheck = true; + meta = { description = "TOML toolkit written in Rust"; homepage = "https://taplo.tamasfe.dev";