Unverified Commit e2f871cc authored by nartsisss's avatar nartsisss
Browse files

topiary: add version check hook

parent 93a799ba
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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 = {