Files

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

51 lines
1015 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
rustPlatform,
fetchCrate,
pkg-config,
openssl,
zlib,
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-audit";
version = "0.21.2";
src = fetchCrate {
inherit pname version;
hash = "sha256-bRBQpZ0YoKDh959a1a7+qEs2vh+dbP8vYcwbkNZQ5cQ=";
};
cargoHash = "sha256-MIwKgQM3LoNV9vcs8FfxTzqXhIhLkYd91dMEgPH++zk=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
zlib
];
buildFeatures = [ "fix" ];
# The tests require network access which is not available in sandboxed Nix builds.
doCheck = false;
meta = {
description = "Audit Cargo.lock files for crates with security vulnerabilities";
mainProgram = "cargo-audit";
homepage = "https://rustsec.org";
changelog = "https://github.com/rustsec/rustsec/blob/cargo-audit/v${version}/cargo-audit/CHANGELOG.md";
license = with lib.licenses; [
mit # or
asl20
];
maintainers = with lib.maintainers; [
basvandijk
figsoda
jk
];
};
}