eb11feaa0b
Changes the default fetcher in the Rust Platform to be the newer `fetchCargoTarball`, and changes every application using the current default to instead opt out. This commit does not change any hashes or cause any rebuilds. Once integrated, we will start deleting the opt-outs and recomputing hashes. See #79975 for details.
47 lines
1.4 KiB
Nix
47 lines
1.4 KiB
Nix
{ stdenv, fetchFromGitHub, rustPlatform, pkgconfig, openssl
|
|
, darwin
|
|
}:
|
|
|
|
with rustPlatform;
|
|
|
|
buildRustPackage rec {
|
|
pname = "chit";
|
|
version = "0.1.15";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "peterheesterman";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0iixczy3cad44j2d7zzj8f3lnmp4jwnb0snmwfgiq3vj9wrn28pz";
|
|
};
|
|
|
|
# Delete this on next update; see #79975 for details
|
|
legacyCargoFetcher = true;
|
|
|
|
cargoSha256 = "0k6z69a09ps55w2rdgnf92yscw6rlbcpb4q9yf3rsav15pgpqvw8";
|
|
|
|
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;
|
|
};
|
|
}
|