Files
nixpkgs/pkgs/by-name/ca/cargo-deny/package.nix
2026-07-09 22:01:16 +00:00

53 lines
1.0 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
zstd,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "cargo-deny";
version = "0.20.2";
src = fetchFromGitHub {
owner = "EmbarkStudios";
repo = "cargo-deny";
tag = finalAttrs.version;
hash = "sha256-sYxRQvJVbVmzajGJdAHnuvJDELv0cyDCCU8cRU0U0oQ=";
};
cargoHash = "sha256-Zb6vQCnhhhL9Ducn9eh5P8Gfopl0lQPTXWW8Q0Y5xBQ=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
zstd
];
env = {
ZSTD_SYS_USE_PKG_CONFIG = true;
};
# tests require internet access
doCheck = false;
meta = {
description = "Cargo plugin for linting your dependencies";
mainProgram = "cargo-deny";
homepage = "https://github.com/EmbarkStudios/cargo-deny";
changelog = "https://github.com/EmbarkStudios/cargo-deny/blob/${finalAttrs.version}/CHANGELOG.md";
license = with lib.licenses; [
asl20 # or
mit
];
maintainers = with lib.maintainers; [
matthiasbeyer
jk
chrjabs
];
};
})