2021-10-17 09:34:42 +00:00
|
|
|
{ lib
|
2021-12-06 16:07:01 +00:00
|
|
|
, stdenv
|
2021-10-17 09:34:42 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
2021-12-06 16:07:01 +00:00
|
|
|
, Security
|
2021-10-17 09:34:42 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "rates";
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "0.6.0";
|
2021-10-17 09:34:42 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lunush";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-02-20 05:27:41 +00:00
|
|
|
sha256 = "sha256-ivJ6rD4+EYeMg6nOWzf3lp521+7NTBq5vCn7648q0T8=";
|
2021-10-17 09:34:42 +00:00
|
|
|
};
|
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
cargoSha256 = "sha256-dsWAxYFB096SZN5tfzEMokdQ8qw1aR/6Hmjtkdw1L8E=";
|
2021-10-17 09:34:42 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
buildInputs = lib.optional stdenv.isDarwin Security;
|
|
|
|
|
2021-10-17 09:34:42 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|