1 { lib, stdenv, fetchFromGitHub, cmake, pkg-config, libjson, json_c, gengetopt, flex, byacc, gmp
5 stdenv.mkDerivation rec {
9 src = fetchFromGitHub {
13 sha256 = "0yaahaiawkjk020hvsb8pndbrk8k10wxkfba1irp12a4sj6rywcs";
17 # fix build with json-c 0.14 https://github.com/zmap/zmap/pull/609
18 ./cmake-json-0.14-fix.patch
21 cmakeFlags = [ "-DRESPECT_INSTALL_PREFIX_CONFIG=ON" ];
22 dontUseCmakeBuildDir = true;
24 nativeBuildInputs = [ cmake pkg-config gengetopt flex byacc ];
25 buildInputs = [ libjson json_c gmp libpcap ];
27 outputs = [ "out" "man" ];
30 homepage = "https://zmap.io/";
31 license = licenses.asl20;
32 description = "Fast single packet network scanner designed for Internet-wide network surveys";
33 maintainers = with maintainers; [ ma27 ];
34 platforms = platforms.unix;
35 broken = stdenv.isDarwin;