From 216d735fad15c1a8b29bc6f2b8b763cded2aa2aa Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 17 Oct 2021 18:02:11 +0200 Subject: [PATCH] rates: init at 0.5.0 --- pkgs/tools/misc/rates/default.nix | 25 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/tools/misc/rates/default.nix diff --git a/pkgs/tools/misc/rates/default.nix b/pkgs/tools/misc/rates/default.nix new file mode 100644 index 000000000000..989a9e6734ac --- /dev/null +++ b/pkgs/tools/misc/rates/default.nix @@ -0,0 +1,25 @@ +{ lib +, fetchFromGitHub +, rustPlatform +}: + +rustPlatform.buildRustPackage rec { + pname = "rates"; + version = "0.5.0"; + + src = fetchFromGitHub { + owner = "lunush"; + repo = pname; + rev = version; + sha256 = "077qxs4kwfprsai07dninkhmj3ihnghdxan98iv8gmsl3pijbgwh"; + }; + + cargoSha256 = "041sskiq152iywwqd8p7aqsqzbj359zl7ilnp8ahzdqprz3slk1w"; + + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b19c0e62ca19..cc6bfc62d071 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -32324,6 +32324,8 @@ with pkgs; qdl = callPackage ../tools/misc/qdl { }; + rates = callPackage ../tools/misc/rates { }; + rargs = callPackage ../tools/misc/rargs { }; rancher = callPackage ../applications/networking/cluster/rancher { };