Skip to content

Commit

Permalink
topiary: add version check hook
Browse files Browse the repository at this point in the history
  • Loading branch information
nartsisss committed Dec 21, 2024
1 parent 93a799b commit e2f871c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkgs/by-name/to/topiary/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
fetchFromGitHub,
iconv,
installShellFiles,
versionCheckHook,
nix-update-script,
}:

Expand All @@ -20,6 +21,7 @@ rustPlatform.buildRustPackage rec {
};

nativeBuildInputs = [ installShellFiles ];
nativeInstallCheckInputs = [ versionCheckHook ];

useFetchCargoVendor = true;
cargoHash = "sha256-bk5993v0wn/emzJKvxaPBYjqCmP0BpOuFMga7ZOyqXg=";
Expand Down Expand Up @@ -65,6 +67,9 @@ rustPlatform.buildRustPackage rec {
--zsh <($out/bin/topiary completion zsh)
'';

doInstallCheck = true;
versionCheckProgramArg = [ "--version" ];

passthru.updateScript = nix-update-script { };

meta = {
Expand Down

0 comments on commit e2f871c

Please sign in to comment.