pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / tools / security / zmap / default.nix
blobb7a9986434ebc291ea9f944447b4f953b13a96f2
1 { lib, stdenv, fetchFromGitHub, cmake, pkg-config, libjson, json_c, gengetopt, flex, byacc, gmp
2 , libpcap, libunistring, judy
3 }:
5 stdenv.mkDerivation rec {
6   pname = "zmap";
7   version = "4.2.0";
9   src = fetchFromGitHub {
10     owner = "zmap";
11     repo = pname;
12     rev = "v${version}";
13     sha256 = "sha256-4BSHNR/snwLf0/UsiCM8xzXk59G5GtsxQKb1F2VVL9c=";
14   };
16   cmakeFlags = [ "-DRESPECT_INSTALL_PREFIX_CONFIG=ON" ];
18   nativeBuildInputs = [ cmake pkg-config gengetopt flex byacc ];
19   buildInputs = [ libjson json_c gmp libpcap libunistring judy ];
21   outputs = [ "out" "man" ];
23   meta = with lib; {
24     homepage = "https://zmap.io/";
25     license = licenses.asl20;
26     description = "Fast single packet network scanner designed for Internet-wide network surveys";
27     maintainers = with maintainers; [ ma27 ];
28     platforms = platforms.unix;
29     broken = stdenv.hostPlatform.isDarwin;
30   };