topiary: add version check hook

This commit is contained in:
nartsisss
2024-12-22 01:51:35 +03:00
parent 93a799bab4
commit e2f871cc5b
+5
View File
@@ -5,6 +5,7 @@
fetchFromGitHub,
iconv,
installShellFiles,
versionCheckHook,
nix-update-script,
}:
@@ -20,6 +21,7 @@ rustPlatform.buildRustPackage rec {
};
nativeBuildInputs = [ installShellFiles ];
nativeInstallCheckInputs = [ versionCheckHook ];
useFetchCargoVendor = true;
cargoHash = "sha256-bk5993v0wn/emzJKvxaPBYjqCmP0BpOuFMga7ZOyqXg=";
@@ -65,6 +67,9 @@ rustPlatform.buildRustPackage rec {
--zsh <($out/bin/topiary completion zsh)
'';
doInstallCheck = true;
versionCheckProgramArg = [ "--version" ];
passthru.updateScript = nix-update-script { };
meta = {