rates: add versionCheckHook

This commit is contained in:
Fabian Affolter 2024-12-03 11:47:59 +01:00
parent a72e7d1cd2
commit 51adde8e75

View File

@ -4,6 +4,7 @@
fetchFromGitHub,
rustPlatform,
Security,
versionCheckHook,
}:
rustPlatform.buildRustPackage rec {
@ -21,6 +22,12 @@ rustPlatform.buildRustPackage rec {
buildInputs = lib.optional stdenv.hostPlatform.isDarwin Security;
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
versionCheckProgramArg = [ "--version" ];
meta = with lib; {
description = "CLI tool that brings currency exchange rates right into your terminal";
homepage = "https://github.com/lunush/rates";