2020-04-30 02:58:45 -07:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, perl, pkgconfig, openssl, Security, libiconv, curl
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-deny";
|
2020-11-02 07:59:05 -08:00
|
|
|
version = "0.8.2";
|
2020-04-30 02:58:45 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "EmbarkStudios";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-11-02 07:59:05 -08:00
|
|
|
sha256 = "1qkg689ks4i665vk3qzyab1y955z5fshp2c6f0zjp618g84sd4ki";
|
2020-04-30 02:58:45 -07:00
|
|
|
};
|
|
|
|
|
2020-11-02 07:59:05 -08:00
|
|
|
cargoSha256 = "0nm6xy0nvv2nw6kkdbqq07ix48yd1vvkd06zmffh7gavw40lha9n";
|
2020-04-30 02:58:45 -07:00
|
|
|
|
|
|
|
nativeBuildInputs = [ perl pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [ openssl ]
|
|
|
|
++ stdenv.lib.optionals stdenv.isDarwin [ Security libiconv curl ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Cargo plugin to generate list of all licenses for a crate";
|
|
|
|
homepage = "https://github.com/EmbarkStudios/cargo-deny";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ matthiasbeyer ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|