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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
2021-12-06 13:19:40 +00:00
, zstd
, stdenv
, curl
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-deny";
2022-05-19 14:16:42 +00:00
version = "0.12.1";
src = fetchFromGitHub {
owner = "EmbarkStudios";
repo = pname;
rev = version;
2022-05-19 14:16:42 +00:00
sha256 = "sha256-w64fdjKXiCaM+U28Hte+I0LPqmGKxbCVRUyhNWcVyTc=";
};
2021-12-06 13:19:40 +00:00
# enable pkg-config feature of zstd
cargoPatches = [ ./zstd-pkg-config.patch ];
2022-05-19 14:16:42 +00:00
cargoSha256 = "sha256-K9Ab4L/wnpUqe+gLKhtHX4fOgWXv6ZL9faa58hzdq/0=";
nativeBuildInputs = [ pkg-config ];
2021-12-06 13:19:40 +00:00
buildInputs = [ openssl zstd ]
++ lib.optionals stdenv.isDarwin [ curl Security ];
2021-11-16 13:36:17 +00:00
buildNoDefaultFeatures = true;
2021-12-06 13:19:40 +00:00
# tests require internet access
doCheck = false;
meta = with lib; {
description = "Cargo plugin to generate list of all licenses for a crate";
homepage = "https://github.com/EmbarkStudios/cargo-deny";
changelog = "https://github.com/EmbarkStudios/cargo-deny/blob/${version}/CHANGELOG.md";
license = with licenses; [ asl20 /* or */ mit ];
2022-01-28 15:42:44 +00:00
maintainers = with maintainers; [ figsoda matthiasbeyer jk ];
};
}