2020-04-30 09:58:45 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
2021-01-19 06:50:56 +00:00
|
|
|
, perl, pkg-config, openssl, Security, libiconv, curl
|
2020-04-30 09:58:45 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-deny";
|
2021-10-30 15:38:45 +00:00
|
|
|
version = "0.10.0";
|
2020-04-30 09:58:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "EmbarkStudios";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-10-30 15:38:45 +00:00
|
|
|
sha256 = "sha256-YXIEM8COtjc3yD8gxoeoJwkGyJwMCCn40591iO6ERxc=";
|
2020-04-30 09:58:45 +00:00
|
|
|
};
|
|
|
|
|
2021-10-30 15:38:45 +00:00
|
|
|
cargoSha256 = "sha256-4PcYnpoRvl01n4Y4usrlLejWwcB5BJnFGqqfbqLD1gI=";
|
2020-04-30 09:58:45 +00:00
|
|
|
|
2020-12-17 17:43:05 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ perl pkg-config ];
|
2020-04-30 09:58:45 +00:00
|
|
|
|
|
|
|
buildInputs = [ openssl ]
|
2021-01-23 12:26:19 +00:00
|
|
|
++ lib.optionals stdenv.isDarwin [ Security libiconv curl ];
|
2020-04-30 09:58:45 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|