@@ -1,19 +1,36 @@
1−{ stdenv, lib, rustPlatform, fetchFromGitHub, openssl, pkg-config, Security, libiconv }:
1+{ lib
2+, stdenv
3+, rustPlatform
4+, fetchFromGitHub
5+, openssl
6+, pkg-config
7+, Security
8+, libiconv
9+}:
10+
211rustPlatform.buildRustPackage rec {
312 pname = "cargo-audit";
4− version = "0.14.1";
13+ version = "0.15.0";
514
615 src = fetchFromGitHub {
716 owner = "RustSec";
8− repo = "cargo-audit";
9− rev = "v${version}";
10− sha256 = "sha256-apIhTgS7xzDGq2OE1o46bEQxGwkV7bTmzSxy85wHwyo=";
17+ repo = "rustsec";
18+ rev = "cargo-audit%2Fv${version}";
19+ sha256 = "0pvb1m9277ysjzydjvx7viybi6bd23ch7sbjyx1wnz45ahrmia1j";
1120 };
1221
13− cargoSha256 = "sha256-b4x5IxoT5KZnY6Pw3VEs/DuCPen6MlgQ2lSIxRDU+5U=";
22+ cargoSha256 = "0cf8kg8vhfqbrkm227rzyl3394n7fsqhqgq13qks7374h5d04haw";
23+
24+ nativeBuildInputs = [
25+ pkg-config
26+ ];
1427
15− buildInputs = [ openssl libiconv ] ++ lib.optionals stdenv.isDarwin [ Security ];
16− nativeBuildInputs = [ pkg-config ];
28+ buildInputs = [
29+ openssl
30+ libiconv
31+ ] ++ lib.optionals stdenv.isDarwin [
32+ Security
33+ ];
1734
1835 # enables `cargo audit fix`
1936 cargoBuildFlags = [ "--features fix" ];