nixpkgs/pkgs/development/tools/rust/cargo-crev/default.nix

36 lines
864 B
Nix
Raw Normal View History

{ lib, stdenv
2020-08-17 10:14:04 +01:00
, fetchFromGitHub
, rustPlatform
, perl
, pkg-config
, Security
, curl
, libiconv
, openssl
}:
2019-11-24 12:34:36 +00:00
rustPlatform.buildRustPackage rec {
pname = "cargo-crev";
2021-04-14 23:08:21 +01:00
version = "0.19.2";
2019-11-24 12:34:36 +00:00
src = fetchFromGitHub {
owner = "crev-dev";
repo = "cargo-crev";
rev = "v${version}";
2021-04-14 23:08:21 +01:00
sha256 = "sha256-aqvdAljAJsYtmxz/WtMrrnmJJRXDpqDjUn1LusoM8ns=";
2019-11-24 12:34:36 +00:00
};
2021-04-14 23:08:21 +01:00
cargoSha256 = "sha256-KwnZmehh0vdR1eSPBrY6yHJR6r7mhIEgfN4soEBDTjU=";
2019-11-24 12:34:36 +00:00
2020-08-17 10:14:04 +01:00
nativeBuildInputs = [ perl pkg-config ];
2019-11-24 12:34:36 +00:00
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security libiconv curl ];
2019-11-24 12:34:36 +00:00
meta = with lib; {
2019-11-24 12:34:36 +00:00
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 ];
};
}