git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #96576 from SuperSandro2000/rustscan

rustscan: init at 1.8.0

commitd6d64dee970a2b0001f2a64a387253ba7a9501e9 authorDaniël de Kok <me@danieldk.eu> dateSat 29 Aug 2020, 19:03 (6 years ago) parent5f5177550f728e
3 files changed+45
maintainers/maintainer-list.nix+6 pkgs/tools/security/rustscan/default.nix+37 pkgs/top-level/all-packages.nix+2
maintainers/maintainer-list.nix+6
@@ -8001,6 +8001,12 @@
80018001 githubId = 65870;
80028002 name = "Сухарик";
80038003 };
8004+ SuperSandro2000 = {
8005+ email = "sandro.jaeckel@gmail.com";
8006+ github = "SuperSandro2000";
8007+ githubId = 7258858;
8008+ name = "Sandro Jäckel";
8009+ };
80048010 SuprDewd = {
80058011 email = "suprdewd@gmail.com";
80068012 github = "SuprDewd";
pkgs/tools/security/rustscan/default.nixnew file+37
@@ -0,0 +1,37 @@
1+{ lib
2+, fetchFromGitHub
3+, rustPlatform
4+, nmap
5+}:
6+
7+rustPlatform.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+}
pkgs/top-level/all-packages.nix+2
@@ -6706,6 +6706,8 @@ in
67066706 inherit (darwin.apple_sdk.frameworks) Security;
67076707 };
67086708
6709+ rustscan = callPackage ../tools/security/rustscan { };
6710+
67096711 rw = callPackage ../tools/misc/rw { };
67106712
67116713 rxp = callPackage ../tools/text/xml/rxp { };