diff options
Diffstat (limited to 'nixpkgs/pkgs/development/tools/rust/cargo-deny/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/tools/rust/cargo-deny/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/tools/rust/cargo-deny/default.nix b/nixpkgs/pkgs/development/tools/rust/cargo-deny/default.nix new file mode 100644 index 000000000000..955df96b2284 --- /dev/null +++ b/nixpkgs/pkgs/development/tools/rust/cargo-deny/default.nix @@ -0,0 +1,36 @@ +{ stdenv +, lib +, rustPlatform +, fetchFromGitHub +, perl, pkg-config, openssl, Security, libiconv, curl +}: + +rustPlatform.buildRustPackage rec { + pname = "cargo-deny"; + version = "0.9.1"; + + src = fetchFromGitHub { + owner = "EmbarkStudios"; + repo = pname; + rev = version; + sha256 = "sha256-v7Gdemn0IeO6lOg/kT6VKuL5ZSOqA9A721Wv5QStO2Q="; + }; + + cargoSha256 = "sha256-SF7LfxmUMX7f+9BmYTzdjTFplXj5j0e181yRVTIEGH4="; + + 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 ]; + }; +} + |