depot/third_party/nixpkgs/pkgs/tools/security/zmap/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

31 lines
868 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, libjson, json_c, gengetopt, flex, byacc, gmp
, libpcap, libunistring
}:
stdenv.mkDerivation rec {
pname = "zmap";
version = "3.0.0";
src = fetchFromGitHub {
owner = "zmap";
repo = pname;
rev = "v${version}";
sha256 = "sha256-OJZKcnsuBi3z/AI05RMBitgn01bhVTqx2jFYJLuIJk4=";
};
cmakeFlags = [ "-DRESPECT_INSTALL_PREFIX_CONFIG=ON" ];
nativeBuildInputs = [ cmake pkg-config gengetopt flex byacc ];
buildInputs = [ libjson json_c gmp libpcap libunistring ];
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;
};
}