nixpkgs/pkgs/tools/security/zmap/default.nix

32 lines
879 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, libjson, json_c, gengetopt, flex, byacc, gmp
, libpcap, libunistring, judy
}:
stdenv.mkDerivation rec {
pname = "zmap";
version = "4.1.1";
src = fetchFromGitHub {
owner = "zmap";
repo = pname;
rev = "v${version}";
sha256 = "sha256-ftdjIBAAe+3qUEHoNMAOCmzy+PWD4neIMWvFXFi2JFo=";
};
cmakeFlags = [ "-DRESPECT_INSTALL_PREFIX_CONFIG=ON" ];
nativeBuildInputs = [ cmake pkg-config gengetopt flex byacc ];
buildInputs = [ libjson json_c gmp libpcap libunistring judy ];
outputs = [ "out" "man" ];
meta = with 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;
};
}