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

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

44 lines
1002 B
Nix
Raw Normal View History

2021-07-03 22:51:42 +00:00
{ lib
, rustPlatform
, fetchCrate
2021-07-03 22:51:42 +00:00
, pkg-config
, openssl
, stdenv
2021-07-03 22:51:42 +00:00
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-audit";
2022-11-08 22:19:37 +00:00
version = "0.17.4";
src = fetchCrate {
inherit pname version;
2022-11-08 22:19:37 +00:00
sha256 = "sha256-tglBtgjhZmeZTE8X6wNGI9CS3OsbHxTlPJVN4wjXVgs=";
};
2022-11-08 22:19:37 +00:00
cargoSha256 = "sha256-THoV87GpTuFhO/Qo37n4oascQK/tCaFUa8G2MKxrz+k=";
2021-07-03 22:51:42 +00:00
nativeBuildInputs = [
pkg-config
];
2021-07-03 22:51:42 +00:00
buildInputs = [
openssl
] ++ lib.optionals stdenv.isDarwin [
Security
];
2022-11-02 02:56:54 +00:00
buildFeatures = [ "fix" ];
# The tests require network access which is not available in sandboxed Nix builds.
doCheck = false;
meta = with lib; {
description = "Audit Cargo.lock files for crates with security vulnerabilities";
homepage = "https://rustsec.org";
changelog = "https://github.com/rustsec/rustsec/blob/cargo-audit/v${version}/cargo-audit/CHANGELOG.md";
2022-05-23 17:46:32 +00:00
license = with licenses; [ mit /* or */ asl20 ];
maintainers = with maintainers; [ basvandijk figsoda jk ];
};
}