From 26265ccd8940823eccfe1c369166601e0abe7001 Mon Sep 17 00:00:00 2001 From: figsoda Date: Fri, 1 Sep 2023 09:08:45 -0400 Subject: [PATCH] cargo-audit: 0.17.6 -> 0.18.1 Diff: https://diff.rs/cargo-audit/0.17.6/0.18.1 Changelog: https://github.com/rustsec/rustsec/blob/cargo-audit/v0.18.1/cargo-audit/CHANGELOG.md --- pkgs/development/tools/rust/cargo-audit/default.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/development/tools/rust/cargo-audit/default.nix b/pkgs/development/tools/rust/cargo-audit/default.nix index ed794a22896e..0de93c3da525 100644 --- a/pkgs/development/tools/rust/cargo-audit/default.nix +++ b/pkgs/development/tools/rust/cargo-audit/default.nix @@ -2,28 +2,32 @@ , rustPlatform , fetchCrate , pkg-config +, libgit2_1_5 , openssl +, zlib , stdenv , Security }: rustPlatform.buildRustPackage rec { pname = "cargo-audit"; - version = "0.17.6"; + version = "0.18.1"; src = fetchCrate { inherit pname version; - sha256 = "sha256-ICNcBqlkX1k3J5vc/bfoXw/+l2LdHOchv4PfY0G7Y94="; + hash = "sha256-XK2SsyT4CyDjCF56v/g7tX5SZKC3krBQNs/ddeFu35A="; }; - cargoSha256 = "sha256-ViqaiSLVfDJhMuHjHGi+NVRLPcRhe2a+oKXl4UNM+K8="; + cargoHash = "sha256-1Uifk1W7NCmHAbUl83GpMUBD6WWUl1J/HjtGv4dEuiA="; nativeBuildInputs = [ pkg-config ]; buildInputs = [ + libgit2_1_5 openssl + zlib ] ++ lib.optionals stdenv.isDarwin [ Security ]; @@ -36,7 +40,7 @@ rustPlatform.buildRustPackage rec { 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/${version}/cargo-audit/CHANGELOG.md"; + changelog = "https://github.com/rustsec/rustsec/blob/cargo-audit/v${version}/cargo-audit/CHANGELOG.md"; license = with licenses; [ mit /* or */ asl20 ]; maintainers = with maintainers; [ basvandijk figsoda jk ]; };