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