2019-11-24 13:34:36 +01:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, Security, openssl, pkgconfig, libiconv, curl }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-crev";
|
2020-02-28 22:46:27 +01:00
|
|
|
version = "0.16.1";
|
2019-11-24 13:34:36 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "crev-dev";
|
|
|
|
repo = "cargo-crev";
|
|
|
|
rev = "v${version}";
|
2020-02-28 22:46:27 +01:00
|
|
|
sha256 = "16da30zbv8f7w8bxsssmrpzm41a966wby1l6ldyiiszs980qh7c5";
|
2019-11-24 13:34:36 +01:00
|
|
|
};
|
|
|
|
|
2020-02-28 22:46:27 +01:00
|
|
|
cargoSha256 = "0z365pgdd95apk2zz2n0gx85s0gf8ccfbqippxqn1fdsppihib6g";
|
2019-11-24 13:34:36 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|