git.iko.soy/typeable/nixpkgs
on master help sign in
cargo-audit: 0.14.1 -> 0.15.0
2edaa49Fabian Affolter
pkgs/tools/package-management/cargo-audit/default.nix+25−8
@@ -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+
2rustPlatform.buildRustPackage rec {
11rustPlatform.buildRustPackage rec {
3 pname = "cargo-audit";
12 pname = "cargo-audit";
4− version = "0.14.1";
13+ version = "0.15.0";
5
14
6 src = fetchFromGitHub {
15 src = fetchFromGitHub {
7 owner = "RustSec";
16 owner = "RustSec";
17+ repo = "rustsec";
8− repo = "cargo-audit";
18+ rev = "cargo-audit%2Fv${version}";
9− rev = "v${version}";
19+ sha256 = "0pvb1m9277ysjzydjvx7viybi6bd23ch7sbjyx1wnz45ahrmia1j";
10− sha256 = "sha256-apIhTgS7xzDGq2OE1o46bEQxGwkV7bTmzSxy85wHwyo=";
11 };
20 };
12
21
13− cargoSha256 = "sha256-b4x5IxoT5KZnY6Pw3VEs/DuCPen6MlgQ2lSIxRDU+5U=";
22+ cargoSha256 = "0cf8kg8vhfqbrkm227rzyl3394n7fsqhqgq13qks7374h5d04haw";
23+
24+ nativeBuildInputs = [
25+ pkg-config
26+ ];
14
27
28+ buildInputs = [
29+ openssl
30+ libiconv
15− buildInputs = [ openssl libiconv ] ++ lib.optionals stdenv.isDarwin [ Security ];
31+ ] ++ lib.optionals stdenv.isDarwin [
16− nativeBuildInputs = [ pkg-config ];
32+ Security
33+ ];
17
34
18 # enables `cargo audit fix`
35 # enables `cargo audit fix`
19 cargoBuildFlags = [ "--features fix" ];
36 cargoBuildFlags = [ "--features fix" ];