diff --git a/pkgs/by-name/kd/kdlfmt/package.nix b/pkgs/by-name/kd/kdlfmt/package.nix index dc60d8f7c842..0e0347d974d3 100644 --- a/pkgs/by-name/kd/kdlfmt/package.nix +++ b/pkgs/by-name/kd/kdlfmt/package.nix @@ -4,6 +4,7 @@ fetchFromGitHub, stdenv, installShellFiles, + versionCheckHook, }: rustPlatform.buildRustPackage (finalAttrs: { @@ -29,6 +30,10 @@ rustPlatform.buildRustPackage (finalAttrs: { --zsh <($out/bin/kdlfmt completions zsh) ''; + nativeInstallCheckInputs = [ versionCheckHook ]; + versionCheckProgramArg = "--version"; + doInstallCheck = true; + meta = { description = "Formatter for kdl documents"; homepage = "https://github.com/hougesen/kdlfmt";