2020-08-20 17:08:02 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, perl
|
|
|
|
, pkg-config
|
|
|
|
, Security
|
|
|
|
, curl
|
|
|
|
, libiconv
|
|
|
|
, openssl
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-crev";
|
2020-10-19 23:25:03 +00:00
|
|
|
version = "0.18.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "crev-dev";
|
|
|
|
repo = "cargo-crev";
|
|
|
|
rev = "v${version}";
|
2020-10-19 23:25:03 +00:00
|
|
|
sha256 = "1ccwa44hpmpd57ff6w02rvrs63wxwmgls2i1rn285rxypmbysrp0";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-10-19 23:25:03 +00:00
|
|
|
cargoSha256 = "1sffivpgrn4my57pcrg46b2yg6fmhxj61d2sqvg60fjljrg595zn";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
nativeBuildInputs = [ perl pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ openssl ] ++ stdenv.lib.optionals stdenv.isDarwin [ Security libiconv curl ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A cryptographically verifiable code review system for the cargo (Rust) package manager";
|
|
|
|
homepage = "https://github.com/crev-dev/cargo-crev";
|
|
|
|
license = with licenses; [ asl20 mit mpl20 ];
|
|
|
|
maintainers = with maintainers; [ b4dm4n ];
|
|
|
|
};
|
|
|
|
}
|