forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request NixOS#70180 from basvandijk/cargo-audit-0.9.1
cargo-audit: init at 0.9.1
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ stdenv, lib, rustPlatform, fetchFromGitHub, openssl, pkg-config, Security, libiconv }: | ||
rustPlatform.buildRustPackage rec { | ||
pname = "cargo-audit"; | ||
version = "0.9.1"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "RustSec"; | ||
repo = "cargo-audit"; | ||
rev = "v${version}"; | ||
sha256 = "0j556dh0lf2l8nq7pfl5bbypgsvp00fh6ckms9wr4dgb8xvpf2r1"; | ||
}; | ||
|
||
cargoSha256 = "0200x0bdllq7mpxmp7ly5jarpkc3gpg22gxq8qvdbnmyd39b7wx0"; | ||
|
||
buildInputs = [ openssl libiconv ] ++ lib.optionals stdenv.isDarwin [ Security ]; | ||
nativeBuildInputs = [ pkg-config ]; | ||
|
||
# The tests require network access which is not available in sandboxed Nix builds. | ||
doCheck = false; | ||
|
||
meta = with lib; { | ||
description = "Audit Cargo.lock files for crates with security vulnerabilities"; | ||
homepage = "https://rustsec.org"; | ||
license = with licenses; [ mit asl20 ]; | ||
maintainers = with maintainers; [ basvandijk ]; | ||
platforms = platforms.all; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters