nixpkgs/pkgs/development/tools/chit/default.nix
Jonathan Ringer 9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08:00

44 lines
1.3 KiB
Nix

{ stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl
, darwin
}:
with rustPlatform;
buildRustPackage rec {
pname = "chit";
version = "0.1.15";
src = fetchFromGitHub {
owner = "peterheesterman";
repo = pname;
rev = version;
sha256 = "0iixczy3cad44j2d7zzj8f3lnmp4jwnb0snmwfgiq3vj9wrn28pz";
};
cargoSha256 = "1w25k3bqmmcrhpkw510vbwph0rfmrzi2wby0z2rz1q4k1f9k486m";
nativeBuildInputs = stdenv.lib.optionals stdenv.isLinux [ pkg-config ];
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 ];
};
}