rustscan: fix building on darwin
This commit is contained in:
parent
57c2755ca2
commit
fd29e9a3c0
@ -1,8 +1,4 @@
|
|||||||
{ lib
|
{ stdenv, fetchFromGitHub, rustPlatform, nmap, Security }:
|
||||||
, fetchFromGitHub
|
|
||||||
, rustPlatform
|
|
||||||
, nmap
|
|
||||||
}:
|
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "rustscan";
|
pname = "rustscan";
|
||||||
@ -22,6 +18,8 @@ rustPlatform.buildRustPackage rec {
|
|||||||
--replace 'Command::new("nmap")' 'Command::new("${nmap}/bin/nmap")'
|
--replace 'Command::new("nmap")' 'Command::new("${nmap}/bin/nmap")'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
buildInputs = stdenv.lib.optional stdenv.isDarwin Security;
|
||||||
|
|
||||||
checkFlags = [
|
checkFlags = [
|
||||||
"--skip=infer_ulimit_lowering_no_panic"
|
"--skip=infer_ulimit_lowering_no_panic"
|
||||||
"--skip=google_dns_runs"
|
"--skip=google_dns_runs"
|
||||||
@ -29,7 +27,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
"--skip=parse_hosts_file_and_incorrect_hosts"
|
"--skip=parse_hosts_file_and_incorrect_hosts"
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Faster Nmap Scanning with Rust";
|
description = "Faster Nmap Scanning with Rust";
|
||||||
homepage = "https://github.com/RustScan/RustScan";
|
homepage = "https://github.com/RustScan/RustScan";
|
||||||
license = licenses.gpl3Only;
|
license = licenses.gpl3Only;
|
||||||
|
@ -6803,7 +6803,9 @@ in
|
|||||||
inherit (darwin.apple_sdk.frameworks) Security;
|
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 { };
|
rw = callPackage ../tools/misc/rw { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user