1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/tools/chit/default.nix

45 lines
1.3 KiB
Nix
Raw Normal View History

2019-05-13 06:49:40 +01:00
{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl
, darwin
}:
with rustPlatform;
buildRustPackage rec {
pname = "chit";
2019-10-19 22:15:19 +01:00
version = "0.1.15";
2019-05-13 06:49:40 +01:00
src = fetchFromGitHub {
owner = "peterheesterman";
repo = pname;
rev = version;
2019-10-19 22:15:19 +01:00
sha256 = "0iixczy3cad44j2d7zzj8f3lnmp4jwnb0snmwfgiq3vj9wrn28pz";
2019-05-13 06:49:40 +01:00
};
cargoSha256 = "1w25k3bqmmcrhpkw510vbwph0rfmrzi2wby0z2rz1q4k1f9k486m";
2019-05-13 06:49:40 +01:00
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";
2019-05-13 06:49:40 +01:00
license = licenses.mit;
maintainers = [ maintainers.lilyball ];
platforms = platforms.all;
};
}