@@ -1,19 +1,36 @@
1−{ stdenv, lib, rustPlatform, fetchFromGitHub, openssl, pkg-config, Security, libiconv }:
1+{ lib
2rustPlatform.buildRustPackage rec {
11rustPlatform.buildRustPackage rec {
3 pname = "cargo-audit";
12 pname = "cargo-audit";
4− version = "0.14.1";
13+ version = "0.15.0";
6 src = fetchFromGitHub {
15 src = fetchFromGitHub {
7 owner = "RustSec";
16 owner = "RustSec";
8− repo = "cargo-audit";
18+ rev = "cargo-audit%2Fv${version}";
9− rev = "v${version}";
19+ sha256 = "0pvb1m9277ysjzydjvx7viybi6bd23ch7sbjyx1wnz45ahrmia1j";
10− sha256 = "sha256-apIhTgS7xzDGq2OE1o46bEQxGwkV7bTmzSxy85wHwyo=";
13− cargoSha256 = "sha256-b4x5IxoT5KZnY6Pw3VEs/DuCPen6MlgQ2lSIxRDU+5U=";
22+ cargoSha256 = "0cf8kg8vhfqbrkm227rzyl3394n7fsqhqgq13qks7374h5d04haw";
24+ nativeBuildInputs = [
15− buildInputs = [ openssl libiconv ] ++ lib.optionals stdenv.isDarwin [ Security ];
31+ ] ++ lib.optionals stdenv.isDarwin [
16− nativeBuildInputs = [ pkg-config ];
32+ Security
18 # enables `cargo audit fix`
35 # enables `cargo audit fix`
19 cargoBuildFlags = [ "--features fix" ];
36 cargoBuildFlags = [ "--features fix" ];