cargo-audit: 0.14.1 -> 0.15.0

This commit is contained in:
Fabian Affolter 2021-07-04 00:51:42 +02:00
parent b118976151
commit 2edaa49ed1

View file

@ -1,19 +1,36 @@
{ stdenv, lib, rustPlatform, fetchFromGitHub, openssl, pkg-config, Security, libiconv }:
{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, openssl
, pkg-config
, Security
, libiconv
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-audit";
version = "0.14.1";
version = "0.15.0";
src = fetchFromGitHub {
owner = "RustSec";
repo = "cargo-audit";
rev = "v${version}";
sha256 = "sha256-apIhTgS7xzDGq2OE1o46bEQxGwkV7bTmzSxy85wHwyo=";
repo = "rustsec";
rev = "cargo-audit%2Fv${version}";
sha256 = "0pvb1m9277ysjzydjvx7viybi6bd23ch7sbjyx1wnz45ahrmia1j";
};
cargoSha256 = "sha256-b4x5IxoT5KZnY6Pw3VEs/DuCPen6MlgQ2lSIxRDU+5U=";
cargoSha256 = "0cf8kg8vhfqbrkm227rzyl3394n7fsqhqgq13qks7374h5d04haw";
buildInputs = [ openssl libiconv ] ++ lib.optionals stdenv.isDarwin [ Security ];
nativeBuildInputs = [ pkg-config ];
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
libiconv
] ++ lib.optionals stdenv.isDarwin [
Security
];
# enables `cargo audit fix`
cargoBuildFlags = [ "--features fix" ];