Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-alpha 37 lines 859 B view raw
1{ lib 2, fetchFromGitHub 3, rustPlatform 4, nmap 5}: 6 7rustPlatform.buildRustPackage rec { 8 pname = "rustscan"; 9 version = "1.8.0"; 10 11 src = fetchFromGitHub { 12 owner = "RustScan"; 13 repo = pname; 14 rev = "${version}"; 15 sha256 = "0rkqsh4i58cf18ad97yr4f68s5jg6z0ybz4bw8607lz7cjkfvjay"; 16 }; 17 18 cargoSha256 = "0mj214f2md7kjknmcayc5dcfmlk2b8mqkn7kxzdis8qv9a5xcbk8"; 19 20 postPatch = '' 21 substituteInPlace src/main.rs \ 22 --replace 'Command::new("nmap")' 'Command::new("${nmap}/bin/nmap")' 23 ''; 24 25 checkFlags = [ 26 "--skip=infer_ulimit_lowering_no_panic" 27 "--skip=google_dns_runs" 28 "--skip=parse_correct_ips_or_hosts" 29 ]; 30 31 meta = with lib; { 32 description = "Faster Nmap Scanning with Rust"; 33 homepage = "https://github.com/RustScan/RustScan"; 34 license = licenses.gpl3Only; 35 maintainers = [ maintainers.SuperSandro2000 ]; 36 }; 37}