diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2020-10-26 09:52:56 +0100 |
---|---|---|
committer | zowoq <59103226+zowoq@users.noreply.github.com> | 2020-10-26 21:55:34 +1000 |
commit | fd29e9a3c0fc003fb47408164104c111b87c2ee2 (patch) | |
tree | 9dda69e1d1734e99c6159f4f9229701670dd67c9 /pkgs/tools/security/rustscan | |
parent | 57c2755ca2522038bc88fbe3dcabc80190369321 (diff) |
rustscan: fix building on darwin
Diffstat (limited to 'pkgs/tools/security/rustscan')
-rw-r--r-- | pkgs/tools/security/rustscan/default.nix | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/pkgs/tools/security/rustscan/default.nix b/pkgs/tools/security/rustscan/default.nix index 773711d1f3024..4d154bbc96ff4 100644 --- a/pkgs/tools/security/rustscan/default.nix +++ b/pkgs/tools/security/rustscan/default.nix @@ -1,8 +1,4 @@ -{ lib -, fetchFromGitHub -, rustPlatform -, nmap -}: +{ stdenv, fetchFromGitHub, rustPlatform, nmap, Security }: rustPlatform.buildRustPackage rec { pname = "rustscan"; @@ -22,6 +18,8 @@ rustPlatform.buildRustPackage rec { --replace 'Command::new("nmap")' 'Command::new("${nmap}/bin/nmap")' ''; + buildInputs = stdenv.lib.optional stdenv.isDarwin Security; + checkFlags = [ "--skip=infer_ulimit_lowering_no_panic" "--skip=google_dns_runs" @@ -29,7 +27,7 @@ rustPlatform.buildRustPackage rec { "--skip=parse_hosts_file_and_incorrect_hosts" ]; - meta = with lib; { + meta = with stdenv.lib; { description = "Faster Nmap Scanning with Rust"; homepage = "https://github.com/RustScan/RustScan"; license = licenses.gpl3Only; |