nixpkgs/pkgs/development/tools/chit/default.nix
Lily Ballard cef5ed2cf4 chit: 0.1.12 -> 0.1.13
Re-enable tests as the one that required network access has been fixed.
2019-05-14 22:16:28 -07:00

45 lines
1.3 KiB
Nix

{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl
, darwin
}:
with rustPlatform;
buildRustPackage rec {
pname = "chit";
version = "0.1.13";
src = fetchFromGitHub {
owner = "peterheesterman";
repo = pname;
rev = version;
sha256 = "1qp5ad83lvfz9l4ihz1l500p8bgf7q0z1k4f3i13nd5n7i3ksdjc";
};
cargoSha256 = "1jqnnf4jgjpm1i310hda15423nxfw9frgpmc2kbrs66qcsj7avaw";
nativeBuildInputs = stdenv.lib.optionals stdenv.isLinux [ pkgconfig ];
buildInputs = []
++ stdenv.lib.optionals stdenv.isLinux [ openssl ]
++ stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ CoreFoundation CoreServices Security ])
;
meta = with stdenv.lib; {
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 ];
platforms = platforms.all;
};
}