nixpkgs/pkgs/development/tools/rust/cargo-deny/default.nix
2021-10-30 15:38:45 +00:00

37 lines
873 B
Nix

{ stdenv
, lib
, rustPlatform
, fetchFromGitHub
, perl, pkg-config, openssl, Security, libiconv, curl
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-deny";
version = "0.10.0";
src = fetchFromGitHub {
owner = "EmbarkStudios";
repo = pname;
rev = version;
sha256 = "sha256-YXIEM8COtjc3yD8gxoeoJwkGyJwMCCn40591iO6ERxc=";
};
cargoSha256 = "sha256-4PcYnpoRvl01n4Y4usrlLejWwcB5BJnFGqqfbqLD1gI=";
doCheck = false;
nativeBuildInputs = [ perl pkg-config ];
buildInputs = [ openssl ]
++ 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 ];
};
}