rustscan: fix building on darwin

This commit is contained in:
Sandro Jäckel 2020-10-26 09:52:56 +01:00 committed by zowoq
parent 57c2755ca2
commit fd29e9a3c0
2 changed files with 7 additions and 7 deletions

View file

@ -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;

View file

@ -6803,7 +6803,9 @@ in
inherit (darwin.apple_sdk.frameworks) Security;
};
rustscan = callPackage ../tools/security/rustscan { };
rustscan = callPackage ../tools/security/rustscan {
inherit (darwin.apple_sdk.frameworks) Security;
};
rw = callPackage ../tools/misc/rw { };