diff options
author | worldofpeace <worldofpeace@users.noreply.github.com> | 2019-05-10 15:19:43 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-10 15:19:43 -0400 |
commit | 6c8bb26331a5cf2bd25a6e16743134896429a8f4 (patch) | |
tree | 596ceb17b5dac3bbf6ea817429f082f1a1f8fe2c /pkgs/tools/security | |
parent | a5a389ef9ac2dcb6c72dfe4c8a0b9654a05e9ac4 (diff) | |
parent | 3d6fe3d7600c4495abc435bf34f98edb9e59e232 (diff) |
Merge pull request #61048 from Ma27/zmap-package
zmap: init at 2.1.1
Diffstat (limited to 'pkgs/tools/security')
-rw-r--r-- | pkgs/tools/security/zmap/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/tools/security/zmap/default.nix b/pkgs/tools/security/zmap/default.nix new file mode 100644 index 000000000000..f98b4295e9e6 --- /dev/null +++ b/pkgs/tools/security/zmap/default.nix @@ -0,0 +1,32 @@ +{ stdenv, fetchFromGitHub, cmake, pkgconfig, libjson, json_c, gengetopt, flex, byacc, gmp +, libpcap +}: + +stdenv.mkDerivation rec { + pname = "zmap"; + version = "2.1.1"; + + src = fetchFromGitHub { + owner = "zmap"; + repo = pname; + rev = "v${version}"; + sha256 = "0yaahaiawkjk020hvsb8pndbrk8k10wxkfba1irp12a4sj6rywcs"; + }; + + cmakeFlags = [ "-DRESPECT_INSTALL_PREFIX_CONFIG=ON" ]; + dontUseCmakeBuildDir = true; + + nativeBuildInputs = [ cmake pkgconfig gengetopt flex byacc ]; + buildInputs = [ libjson json_c gmp libpcap ]; + + outputs = [ "out" "man" ]; + + meta = with stdenv.lib; { + homepage = https://zmap.io/; + license = licenses.asl20; + description = "Fast single packet network scanner designed for Internet-wide network surveys"; + maintainers = with maintainers; [ ma27 ]; + platforms = platforms.unix; + broken = stdenv.isDarwin; + }; +} |