2019-09-30 03:21:21 +01:00
|
|
|
{stdenv, fetchurl, cmake, flex, bison, openssl, libpcap, zlib, file, curl
|
|
|
|
, libmaxminddb, gperftools, python, swig, rocksdb }:
|
2020-03-02 00:48:23 +00:00
|
|
|
let
|
|
|
|
preConfigure = (import ./script.nix);
|
|
|
|
in
|
2019-09-30 03:21:21 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "zeek";
|
2019-12-10 21:20:00 +00:00
|
|
|
version = "3.0.1";
|
2019-09-30 03:21:21 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.zeek.org/downloads/zeek-${version}.tar.gz";
|
2019-12-10 21:20:00 +00:00
|
|
|
sha256 = "1lhik212wrbi092qizc08f3i0b9pj318sxwm0abc5jc3v3pz7x3r";
|
2019-09-30 03:21:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake flex bison file ];
|
|
|
|
buildInputs = [ openssl libpcap zlib curl libmaxminddb gperftools python swig rocksdb ];
|
|
|
|
|
2020-03-02 00:48:23 +00:00
|
|
|
#see issue https://github.com/zeek/zeek/issues/804 to modify hardlinking duplicate files.
|
|
|
|
inherit preConfigure;
|
|
|
|
|
2019-09-30 03:21:21 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DPY_MOD_INSTALL_DIR=${placeholder "out"}/${python.sitePackages}"
|
|
|
|
"-DENABLE_PERFTOOLS=true"
|
|
|
|
"-DINSTALL_AUX_TOOLS=true"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Powerful network analysis framework much different from a typical IDS";
|
|
|
|
homepage = "https://www.zeek.org";
|
|
|
|
license = licenses.bsd3;
|
2019-10-02 10:00:00 +01:00
|
|
|
maintainers = with maintainers; [ pSub marsam tobim ];
|
2019-09-30 03:21:21 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|