mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
Merge pull request #96576 from SuperSandro2000/rustscan
rustscan: init at 1.8.0
This commit is contained in:
commit
d6d64dee97
@ -8001,6 +8001,12 @@
|
|||||||
githubId = 65870;
|
githubId = 65870;
|
||||||
name = "Сухарик";
|
name = "Сухарик";
|
||||||
};
|
};
|
||||||
|
SuperSandro2000 = {
|
||||||
|
email = "sandro.jaeckel@gmail.com";
|
||||||
|
github = "SuperSandro2000";
|
||||||
|
githubId = 7258858;
|
||||||
|
name = "Sandro Jäckel";
|
||||||
|
};
|
||||||
SuprDewd = {
|
SuprDewd = {
|
||||||
email = "suprdewd@gmail.com";
|
email = "suprdewd@gmail.com";
|
||||||
github = "SuprDewd";
|
github = "SuprDewd";
|
||||||
|
37
pkgs/tools/security/rustscan/default.nix
Normal file
37
pkgs/tools/security/rustscan/default.nix
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
{ lib
|
||||||
|
, fetchFromGitHub
|
||||||
|
, rustPlatform
|
||||||
|
, nmap
|
||||||
|
}:
|
||||||
|
|
||||||
|
rustPlatform.buildRustPackage rec {
|
||||||
|
pname = "rustscan";
|
||||||
|
version = "1.8.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "RustScan";
|
||||||
|
repo = pname;
|
||||||
|
rev = "${version}";
|
||||||
|
sha256 = "0rkqsh4i58cf18ad97yr4f68s5jg6z0ybz4bw8607lz7cjkfvjay";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoSha256 = "0mj214f2md7kjknmcayc5dcfmlk2b8mqkn7kxzdis8qv9a5xcbk8";
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace src/main.rs \
|
||||||
|
--replace 'Command::new("nmap")' 'Command::new("${nmap}/bin/nmap")'
|
||||||
|
'';
|
||||||
|
|
||||||
|
checkFlags = [
|
||||||
|
"--skip=infer_ulimit_lowering_no_panic"
|
||||||
|
"--skip=google_dns_runs"
|
||||||
|
"--skip=parse_correct_ips_or_hosts"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Faster Nmap Scanning with Rust";
|
||||||
|
homepage = "https://github.com/RustScan/RustScan";
|
||||||
|
license = licenses.gpl3Only;
|
||||||
|
maintainers = [ maintainers.SuperSandro2000 ];
|
||||||
|
};
|
||||||
|
}
|
@ -6706,6 +6706,8 @@ in
|
|||||||
inherit (darwin.apple_sdk.frameworks) Security;
|
inherit (darwin.apple_sdk.frameworks) Security;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
rustscan = callPackage ../tools/security/rustscan { };
|
||||||
|
|
||||||
rw = callPackage ../tools/misc/rw { };
|
rw = callPackage ../tools/misc/rw { };
|
||||||
|
|
||||||
rxp = callPackage ../tools/text/xml/rxp { };
|
rxp = callPackage ../tools/text/xml/rxp { };
|
||||||
|
Loading…
Reference in New Issue
Block a user