nixpkgs/pkgs/tools/misc/coinlive/default.nix

45 lines
849 B
Nix
Raw Normal View History

2022-08-18 11:54:01 +00:00
{ lib
2022-12-17 22:41:57 +00:00
, stdenv
2022-08-18 11:54:01 +00:00
, fetchFromGitHub
, openssl
, pkg-config
, rustPlatform
2022-12-17 22:41:57 +00:00
, Security
2022-08-18 11:54:01 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "coinlive";
2023-01-13 01:13:32 +00:00
version = "0.2.2";
2022-08-18 11:54:01 +00:00
src = fetchFromGitHub {
owner = "mayeranalytics";
repo = pname;
rev = "v${version}";
2023-01-13 01:13:32 +00:00
hash = "sha256-llw97jjfPsDd4nYi6lb9ug6sApPoD54WlzpJswvdbRs=";
2022-08-18 11:54:01 +00:00
};
2023-01-13 01:13:32 +00:00
cargoSha256 = "sha256-T1TgwnohUDvfpn6GXNP4xJGHM3aenMK+ORxE3z3PPA4=";
2022-08-18 11:54:01 +00:00
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
2022-12-17 22:41:57 +00:00
] ++ lib.optionals stdenv.isDarwin [
Security
2022-08-18 11:54:01 +00:00
];
2023-01-13 01:13:32 +00:00
checkFlags = [
# requires network access
"--skip=utils::test_get_infos"
];
2022-08-18 11:54:01 +00:00
meta = with lib; {
description = "Live cryptocurrency prices CLI";
homepage = "https://github.com/mayeranalytics/coinlive";
license = licenses.gpl3Only;
maintainers = with maintainers; [ fab ];
};
}