2021-01-17 03:51:22 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, libjson, json_c, gengetopt, flex, byacc, gmp
|
2023-06-26 09:19:16 +00:00
|
|
|
, libpcap, libunistring
|
2019-05-06 13:49:46 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "zmap";
|
2023-06-26 09:19:16 +00:00
|
|
|
version = "3.0.0";
|
2019-05-06 13:49:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zmap";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-06-26 09:19:16 +00:00
|
|
|
sha256 = "sha256-OJZKcnsuBi3z/AI05RMBitgn01bhVTqx2jFYJLuIJk4=";
|
2019-05-06 13:49:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DRESPECT_INSTALL_PREFIX_CONFIG=ON" ];
|
|
|
|
|
2021-01-17 03:51:22 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config gengetopt flex byacc ];
|
2023-06-26 09:19:16 +00:00
|
|
|
buildInputs = [ libjson json_c gmp libpcap libunistring ];
|
2019-05-06 13:49:46 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://zmap.io/";
|
2019-05-06 13:49:46 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|