Merge pull request #129191 from fabaff/bump-cargo-audit
This commit is contained in:
commit
03db443af8
1 changed files with 25 additions and 8 deletions
|
@ -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 {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "cargo-audit";
|
pname = "cargo-audit";
|
||||||
version = "0.14.1";
|
version = "0.15.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "RustSec";
|
owner = "RustSec";
|
||||||
repo = "cargo-audit";
|
repo = "rustsec";
|
||||||
rev = "v${version}";
|
rev = "cargo-audit%2Fv${version}";
|
||||||
sha256 = "sha256-apIhTgS7xzDGq2OE1o46bEQxGwkV7bTmzSxy85wHwyo=";
|
sha256 = "0pvb1m9277ysjzydjvx7viybi6bd23ch7sbjyx1wnz45ahrmia1j";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "sha256-b4x5IxoT5KZnY6Pw3VEs/DuCPen6MlgQ2lSIxRDU+5U=";
|
cargoSha256 = "0cf8kg8vhfqbrkm227rzyl3394n7fsqhqgq13qks7374h5d04haw";
|
||||||
|
|
||||||
buildInputs = [ openssl libiconv ] ++ lib.optionals stdenv.isDarwin [ Security ];
|
nativeBuildInputs = [
|
||||||
nativeBuildInputs = [ pkg-config ];
|
pkg-config
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
openssl
|
||||||
|
libiconv
|
||||||
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
|
Security
|
||||||
|
];
|
||||||
|
|
||||||
# enables `cargo audit fix`
|
# enables `cargo audit fix`
|
||||||
cargoBuildFlags = [ "--features fix" ];
|
cargoBuildFlags = [ "--features fix" ];
|
||||||
|
|
Loading…
Reference in a new issue