2021-10-17 18:02:11 +02:00
|
|
|
{ lib
|
2021-11-18 18:42:24 +01:00
|
|
|
, stdenv
|
2021-10-17 18:02:11 +02:00
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
2021-11-18 18:42:24 +01:00
|
|
|
, Security
|
2021-10-17 18:02:11 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "rates";
|
2022-02-25 19:17:42 +01:00
|
|
|
version = "0.7.0";
|
2021-10-17 18:02:11 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lunush";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-02-25 19:17:42 +01:00
|
|
|
sha256 = "sha256-zw2YLTrvqbGKR8Dg5W+kJTDKIfro+MNyjHXfZMXZhaw=";
|
2021-10-17 18:02:11 +02:00
|
|
|
};
|
|
|
|
|
2022-02-25 19:17:42 +01:00
|
|
|
cargoSha256 = "sha256-5EcTeMfa1GNp1q60qSgEi/I3298hXUD1Vc1K55XGW4I=";
|
2021-10-17 18:02:11 +02:00
|
|
|
|
2021-11-18 18:42:24 +01:00
|
|
|
buildInputs = lib.optional stdenv.isDarwin Security;
|
|
|
|
|
2021-10-17 18:02:11 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "CLI tool that brings currency exchange rates right into your terminal";
|
|
|
|
homepage = "https://github.com/lunush/rates";
|
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2023-11-27 02:17:53 +01:00
|
|
|
mainProgram = "rates";
|
2021-10-17 18:02:11 +02:00
|
|
|
};
|
|
|
|
}
|