mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 03:34:58 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
57 lines
1.3 KiB
Nix
57 lines
1.3 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, stdenv
|
|
, openssl
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "chit";
|
|
version = "0.1.15";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "peterheesterman";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0iixczy3cad44j2d7zzj8f3lnmp4jwnb0snmwfgiq3vj9wrn28pz";
|
|
};
|
|
|
|
cargoLock = {
|
|
lockFile = ./Cargo.lock;
|
|
};
|
|
|
|
nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ];
|
|
|
|
buildInputs = lib.optionals stdenv.isLinux [
|
|
openssl
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
darwin.apple_sdk.frameworks.Security
|
|
];
|
|
|
|
# update Carg.lock to work with openssl 3
|
|
postPatch = ''
|
|
ln -sf ${./Cargo.lock} Cargo.lock
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Crate help in terminal: A tool for looking up details about rust crates without going to crates.io";
|
|
mainProgram = "chit";
|
|
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 = with maintainers; [ figsoda lilyball ];
|
|
};
|
|
}
|