nixpkgs/pkgs/applications/misc/tickrs/default.nix

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

47 lines
939 B
Nix
Raw Normal View History

2023-05-14 21:14:50 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
, zlib
, stdenv
, darwin
}:
2020-11-27 18:32:36 +00:00
rustPlatform.buildRustPackage rec {
pname = "tickrs";
2023-02-25 13:18:59 +00:00
version = "0.14.8";
2020-11-27 18:32:36 +00:00
src = fetchFromGitHub {
owner = "tarkah";
repo = pname;
2023-02-25 14:29:03 +00:00
rev = "refs/tags/v${version}";
hash = "sha256-8q/dL1Pv25TkL7PESybgIu+0lR0cr6qrK6ItE/r9pbI=";
2020-11-27 18:32:36 +00:00
};
2023-02-25 13:18:59 +00:00
cargoHash = "sha256-fOYxOiVpgflwIz9Z6ePhQKDa7DX4D/ZCnPOwq9vWOSk=";
2020-11-27 18:32:36 +00:00
2023-05-14 21:14:50 +00:00
nativeBuildInputs = [
pkg-config
];
2020-11-27 18:32:36 +00:00
2023-05-14 21:14:50 +00:00
buildInputs = [
openssl
zlib
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.SystemConfiguration
];
env = {
OPENSSL_NO_VENDOR = true;
};
meta = with lib; {
2020-11-27 18:32:36 +00:00
description = "Realtime ticker data in your terminal";
homepage = "https://github.com/tarkah/tickrs";
2023-02-25 14:29:03 +00:00
changelog = "https://github.com/tarkah/tickrs/blob/v${version}/CHANGELOG.md";
2020-11-27 18:32:36 +00:00
license = licenses.mit;
maintainers = with maintainers; [ mredaelli ];
};
}