2021-02-07 22:15:35 +00:00
|
|
|
{ lib, stdenv, rustPlatform, fetchFromGitHub, perl, Security }:
|
2020-11-27 18:32:36 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "tickrs";
|
2021-03-17 19:09:49 +00:00
|
|
|
version = "0.14.3";
|
2020-11-27 18:32:36 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tarkah";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-03-17 19:09:49 +00:00
|
|
|
sha256 = "sha256-mHMBhYI9pJkuK/6tCg1fXPjTfGFe0gkMzplesuFvl5M=";
|
2020-11-27 18:32:36 +00:00
|
|
|
};
|
|
|
|
|
2021-03-17 19:09:49 +00:00
|
|
|
cargoSha256 = "sha256-XmLobbVTYO8dA8YVtI/ntlD1RB9sO3poP6NBdDOPIlE=";
|
2020-11-27 18:32:36 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ perl ];
|
|
|
|
|
2021-02-07 22:15:35 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-11-27 18:32:36 +00:00
|
|
|
description = "Realtime ticker data in your terminal";
|
|
|
|
homepage = "https://github.com/tarkah/tickrs";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ mredaelli ];
|
|
|
|
};
|
|
|
|
}
|