2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl
|
2020-04-24 23:36:52 +00:00
|
|
|
, darwin
|
|
|
|
}:
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "chit";
|
|
|
|
version = "0.1.15";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "peterheesterman";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0iixczy3cad44j2d7zzj8f3lnmp4jwnb0snmwfgiq3vj9wrn28pz";
|
|
|
|
};
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
cargoSha256 = "1y6k24p4m67v5773rzid2r0jwxp9piggrp0462z446hbcam2r4gd";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = []
|
2021-02-05 17:12:51 +00:00
|
|
|
++ lib.optionals stdenv.isLinux [ openssl ]
|
|
|
|
++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ CoreFoundation CoreServices Security ])
|
2020-04-24 23:36:52 +00:00
|
|
|
;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Crate help in terminal: A tool for looking up details about rust crates without going to crates.io";
|
|
|
|
longDescription = ''
|
|
|
|
Chit helps answer these questions:
|
|
|
|
|
|
|
|
* Who wrote this crate? What else did they write?
|
|
|
|
* What alternatives are there?
|
|
|
|
* How old is this crate?
|
|
|
|
* What versions are there? When did they come out?
|
|
|
|
* What are the downloads over time?
|
|
|
|
* Should i use this crate?
|
|
|
|
* How mature is it?
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/peterheesterman/chit";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.lilyball ];
|
|
|
|
};
|
|
|
|
}
|