From e2f871cc5b3b35dc4c513a2cb1488e2a460d30f6 Mon Sep 17 00:00:00 2001 From: nartsisss Date: Wed, 11 Dec 2024 19:38:40 +0300 Subject: [PATCH] topiary: add version check hook --- pkgs/by-name/to/topiary/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/to/topiary/package.nix b/pkgs/by-name/to/topiary/package.nix index ed89a05309ddd..f8bba2cf257b6 100644 --- a/pkgs/by-name/to/topiary/package.nix +++ b/pkgs/by-name/to/topiary/package.nix @@ -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 = {