nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, stdenv
3, fetchFromGitHub
4, openssl
5, pkg-config
6, rustPlatform
7, Security
8}:
9
10rustPlatform.buildRustPackage rec {
11 pname = "coinlive";
12 version = "0.2.2";
13
14 src = fetchFromGitHub {
15 owner = "mayeranalytics";
16 repo = pname;
17 rev = "v${version}";
18 hash = "sha256-llw97jjfPsDd4nYi6lb9ug6sApPoD54WlzpJswvdbRs=";
19 };
20
21 cargoSha256 = "sha256-T1TgwnohUDvfpn6GXNP4xJGHM3aenMK+ORxE3z3PPA4=";
22
23 nativeBuildInputs = [
24 pkg-config
25 ];
26
27 buildInputs = [
28 openssl
29 ] ++ lib.optionals stdenv.isDarwin [
30 Security
31 ];
32
33 checkFlags = [
34 # requires network access
35 "--skip=utils::test_get_infos"
36 ];
37
38 meta = with lib; {
39 description = "Live cryptocurrency prices CLI";
40 homepage = "https://github.com/mayeranalytics/coinlive";
41 license = licenses.gpl3Only;
42 maintainers = with maintainers; [ fab ];
43 };
44}