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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
849 B
Nix
Raw Normal View History

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