2021-02-07 23:15:35 +01:00
|
|
|
{ lib, stdenv, rustPlatform, fetchFromGitHub, perl, Security }:
|
2020-11-27 19:32:36 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "tickrs";
|
2023-02-25 14:18:59 +01:00
|
|
|
version = "0.14.8";
|
2020-11-27 19:32:36 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tarkah";
|
|
|
|
repo = pname;
|
2023-02-25 15:29:03 +01:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-8q/dL1Pv25TkL7PESybgIu+0lR0cr6qrK6ItE/r9pbI=";
|
2020-11-27 19:32:36 +01:00
|
|
|
};
|
|
|
|
|
2023-02-25 14:18:59 +01:00
|
|
|
cargoHash = "sha256-fOYxOiVpgflwIz9Z6ePhQKDa7DX4D/ZCnPOwq9vWOSk=";
|
2020-11-27 19:32:36 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ perl ];
|
|
|
|
|
2021-02-07 23:15:35 +01:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-11-27 19:32:36 +01:00
|
|
|
description = "Realtime ticker data in your terminal";
|
|
|
|
homepage = "https://github.com/tarkah/tickrs";
|
2023-02-25 15:29:03 +01:00
|
|
|
changelog = "https://github.com/tarkah/tickrs/blob/v${version}/CHANGELOG.md";
|
2020-11-27 19:32:36 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ mredaelli ];
|
|
|
|
};
|
|
|
|
}
|