1 { lib, rustPlatform, fetchCrate, nmap, stdenv, Security, perl, python3 }:
3 rustPlatform.buildRustPackage rec {
9 sha256 = "sha256-yGVhbI1LivTIQEgqOK59T1+8SiTJBPIdftiXkwE4lZM=";
12 cargoSha256 = "sha256-UR3ktV80QU0N3f7qmqdhYpc5uwoPq4UvN40zEuMbp+Q=";
15 substituteInPlace src/scripts/mod.rs \
16 --replace 'call_format = "nmap' 'call_format = "${nmap}/bin/nmap'
17 patchShebangs fixtures/.rustscan_scripts/*
20 buildInputs = lib.optional stdenv.isDarwin Security;
22 checkInputs = [ perl python3 ];
24 # these tests require network access
26 "--skip=parse_correct_host_addresses"
27 "--skip=parse_hosts_file_and_incorrect_hosts"
31 description = "Faster Nmap Scanning with Rust";
32 homepage = "https://github.com/RustScan/RustScan";
33 license = licenses.gpl3Only;
34 maintainers = with maintainers; [ figsoda ];