blob: a30a46e727c27f0614e864c2f1614870858a48a0 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
{
lib,
stdenv,
darwin,
fetchFromGitHub,
rustPlatform,
versionCheckHook,
}:
rustPlatform.buildRustPackage rec {
pname = "rates";
version = "0.7.0";
src = fetchFromGitHub {
owner = "lunush";
repo = "rates";
tag = version;
hash = "sha256-zw2YLTrvqbGKR8Dg5W+kJTDKIfro+MNyjHXfZMXZhaw=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-qfuCA1kAEbYIYI274lNrEKZNhltQP71CwtsjBr0REJs=";
buildInputs = lib.optional stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.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";
changelog = "https://github.com/lunush/rates/releases/tag/${version}";
license = with licenses; [
asl20
mit
];
maintainers = with maintainers; [ fab ];
mainProgram = "rates";
};
}
|