mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-15 17:58:03 +00:00
rates: add versionCheckHook
This commit is contained in:
parent
a72e7d1cd2
commit
51adde8e75
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user