mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 21:50:55 +00:00
33 lines
873 B
Nix
33 lines
873 B
Nix
{ stdenv, fetchFromGitHub, cmake, pkgconfig, libjson, json_c, gengetopt, flex, byacc, gmp
|
|
, libpcap
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "zmap";
|
|
version = "2.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zmap";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0yaahaiawkjk020hvsb8pndbrk8k10wxkfba1irp12a4sj6rywcs";
|
|
};
|
|
|
|
cmakeFlags = [ "-DRESPECT_INSTALL_PREFIX_CONFIG=ON" ];
|
|
dontUseCmakeBuildDir = true;
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig gengetopt flex byacc ];
|
|
buildInputs = [ libjson json_c gmp libpcap ];
|
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
meta = with stdenv.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;
|
|
};
|
|
}
|