summary refs log tree commit diff
path: root/pkgs/tools/misc/coinlive
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2022-08-18 13:54:01 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2022-08-18 13:54:01 +0200
commitf3c99629ae26a6fc8963482f34cbd9178aee41b9 (patch)
treeea67230974c5c68f32ff081d4b7a34c5f9cc5261 /pkgs/tools/misc/coinlive
parent6e665c4e29613872fb48c4b645aed0c28fb93702 (diff)
downloadnixpkgs-f3c99629ae26a6fc8963482f34cbd9178aee41b9.tar
nixpkgs-f3c99629ae26a6fc8963482f34cbd9178aee41b9.tar.gz
nixpkgs-f3c99629ae26a6fc8963482f34cbd9178aee41b9.tar.bz2
nixpkgs-f3c99629ae26a6fc8963482f34cbd9178aee41b9.tar.lz
nixpkgs-f3c99629ae26a6fc8963482f34cbd9178aee41b9.tar.xz
nixpkgs-f3c99629ae26a6fc8963482f34cbd9178aee41b9.tar.zst
nixpkgs-f3c99629ae26a6fc8963482f34cbd9178aee41b9.zip
coinlive: init at 0.2.1
Diffstat (limited to 'pkgs/tools/misc/coinlive')
-rw-r--r--pkgs/tools/misc/coinlive/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/tools/misc/coinlive/default.nix b/pkgs/tools/misc/coinlive/default.nix
new file mode 100644
index 00000000000..8841f1df6e3
--- /dev/null
+++ b/pkgs/tools/misc/coinlive/default.nix
@@ -0,0 +1,35 @@
+{ lib
+, fetchFromGitHub
+, openssl
+, pkg-config
+, rustPlatform
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "coinlive";
+  version = "0.2.1";
+
+  src = fetchFromGitHub {
+    owner = "mayeranalytics";
+    repo = pname;
+    rev = "v${version}";
+    hash = "sha256-i21C1ZSAPoUOBlnDQl40/17yRqmNx3wkjswHJeV9vko=";
+  };
+
+  cargoSha256 = "sha256-0pUXCY5rZWh26KGD2OU2+M9L0RtCIan6hmuNeIeBEHI=";
+
+  nativeBuildInputs = [
+    pkg-config
+  ];
+
+  buildInputs = [
+    openssl
+  ];
+
+  meta = with lib; {
+    description = "Live cryptocurrency prices CLI";
+    homepage = "https://github.com/mayeranalytics/coinlive";
+    license = licenses.gpl3Only;
+    maintainers = with maintainers; [ fab ];
+  };
+}