3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/ids/zeek/default.nix

47 lines
1.5 KiB
Nix
Raw Normal View History

2019-09-30 03:21:21 +01:00
{stdenv, fetchurl, cmake, flex, bison, openssl, libpcap, zlib, file, curl
2020-04-10 10:20:00 +01:00
, libmaxminddb, gperftools, python, swig, fetchpatch }:
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";
2020-04-18 10:20:00 +01:00
version = "3.1.2";
2019-09-30 03:21:21 +01:00
src = fetchurl {
2020-04-18 10:20:00 +01:00
url = "https://download.zeek.org/zeek-${version}.tar.gz";
sha256 = "18aa4pfwav8m6vq7cr4bhfg243da54ak933rqbriljnhsrgp4n0q";
2019-09-30 03:21:21 +01:00
};
nativeBuildInputs = [ cmake flex bison file ];
2020-04-10 10:20:00 +01:00
buildInputs = [ openssl libpcap zlib curl libmaxminddb gperftools python swig ];
2019-09-30 03:21:21 +01:00
2020-03-02 00:48:23 +00:00
#see issue https://github.com/zeek/zeek/issues/804 to modify hardlinking duplicate files.
inherit preConfigure;
2020-04-10 10:20:00 +01:00
2019-09-30 03:21:21 +01:00
enableParallelBuilding = true;
2020-04-10 10:20:00 +01:00
patches = stdenv.lib.optionals stdenv.cc.isClang [
# Fix pybind c++17 build with Clang. See: https://github.com/pybind/pybind11/issues/1604
(fetchpatch {
url = "https://github.com/pybind/pybind11/commit/759221f5c56939f59d8f342a41f8e2d2cacbc8cf.patch";
sha256 = "0l8z7d7chq1awd8dnfarj4c40wx36hkhcan0702p5l89x73wqk54";
extraPrefix = "aux/broker/bindings/python/3rdparty/pybind11/";
stripLen = 1;
})
];
2019-09-30 03:21:21 +01:00
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;
};
}