depot/third_party/nixpkgs/pkgs/tools/misc/coinlive/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

45 lines
879 B
Nix

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