Merge pull request #135465 from fabaff/sx-go

sx-go: init at 0.4.0
This commit is contained in:
Sandro 2021-08-23 22:29:48 +02:00 committed by GitHub
commit 229b10fc71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,35 @@
{ lib
, buildGoModule
, fetchFromGitHub
, libpcap
}:
buildGoModule rec {
pname = "sx-go";
version = "0.4.0";
src = fetchFromGitHub {
owner = "v-byte-cpu";
repo = "sx";
rev = "v${version}";
sha256 = "0djpwy40wj5asky8a16i7a117816p8g94p5y0wkl74jp07cybmrl";
};
vendorSha256 = "0n1h9jch0zfafli8djjr6wkgfxxpnh4q873d5mr1xg8a25qhlifr";
buildInputs = [
libpcap
];
postFixup = ''
# Rename binary to avoid conflict with sx
mv $out/bin/sx $out/bin/${pname}
'';
meta = with lib; {
description = "Command-line network scanner";
homepage = "https://github.com/v-byte-cpu/sx";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -893,6 +893,8 @@ with pkgs;
redfang = callPackage ../tools/networking/redfang { };
sx-go = callPackage ../tools/security/sx-go { };
tfk8s = callPackage ../tools/misc/tfk8s { };
tnat64 = callPackage ../tools/networking/tnat64 { };