nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 50 lines 1.0 kB view raw
1{ 2 lib, 3 rustPlatform, 4 fetchCrate, 5 pkg-config, 6 openssl, 7 zlib, 8}: 9 10rustPlatform.buildRustPackage rec { 11 pname = "cargo-audit"; 12 version = "0.21.2"; 13 14 src = fetchCrate { 15 inherit pname version; 16 hash = "sha256-bRBQpZ0YoKDh959a1a7+qEs2vh+dbP8vYcwbkNZQ5cQ="; 17 }; 18 19 cargoHash = "sha256-MIwKgQM3LoNV9vcs8FfxTzqXhIhLkYd91dMEgPH++zk="; 20 21 nativeBuildInputs = [ 22 pkg-config 23 ]; 24 25 buildInputs = [ 26 openssl 27 zlib 28 ]; 29 30 buildFeatures = [ "fix" ]; 31 32 # The tests require network access which is not available in sandboxed Nix builds. 33 doCheck = false; 34 35 meta = { 36 description = "Audit Cargo.lock files for crates with security vulnerabilities"; 37 mainProgram = "cargo-audit"; 38 homepage = "https://rustsec.org"; 39 changelog = "https://github.com/rustsec/rustsec/blob/cargo-audit/v${version}/cargo-audit/CHANGELOG.md"; 40 license = with lib.licenses; [ 41 mit # or 42 asl20 43 ]; 44 maintainers = with lib.maintainers; [ 45 basvandijk 46 figsoda 47 jk 48 ]; 49 }; 50}