2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2020-04-24 23:36:52 +00:00
|
|
|
, autoconf, automake, libtool, pkg-config
|
2021-04-05 15:23:46 +00:00
|
|
|
, bzip2, libpcap, flex, bison }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
let version = "1.7.0.1"; in
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "nfdump";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "phaag";
|
|
|
|
repo = "nfdump";
|
|
|
|
rev = "v${version}";
|
2022-10-06 18:32:54 +00:00
|
|
|
sha256 = "sha256-yD/NFGw38ishqQmKhlnHYodXmJuezI09hxNsyObZ1QE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
nativeBuildInputs = [ autoconf automake flex libtool pkg-config bison ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ bzip2 libpcap ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
# The script defaults to glibtoolize on darwin, so we pass the correct
|
|
|
|
# name explicitly.
|
|
|
|
LIBTOOLIZE=libtoolize ./autogen.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-nsel"
|
|
|
|
"--enable-sflow"
|
|
|
|
"--enable-readpcap"
|
|
|
|
"--enable-nfpcapd"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Tools for working with netflow data";
|
|
|
|
longDescription = ''
|
|
|
|
nfdump is a set of tools for working with netflow data.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/phaag/nfdump";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.takikawa ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|