2022-05-09 09:11:11 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchCrate
|
|
|
|
, rustPlatform
|
2022-05-30 09:08:00 +01:00
|
|
|
, pkg-config
|
2022-05-09 09:11:11 +01:00
|
|
|
, openssl
|
|
|
|
, Security
|
|
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "gh-cal";
|
|
|
|
version = "0.1.3";
|
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "sha256-x9DekflZoXxH964isWCi6YuV3v/iIyYOuRYVgKaUBx0=";
|
|
|
|
};
|
|
|
|
|
|
|
|
cargoSha256 = "sha256-73gqk0DjhaLGIEP5VQQlubPomxHQyg4RnY5XTgE7msQ=";
|
|
|
|
|
2022-05-30 09:08:00 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2022-05-09 09:11:11 +01:00
|
|
|
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "GitHub contributions calender terminal viewer";
|
|
|
|
homepage = "https://github.com/mrshmllow/gh-cal";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ loicreynier ];
|
|
|
|
};
|
|
|
|
}
|