2019-04-14 12:09:22 +02:00
|
|
|
{ stdenv, fetchFromGitHub
|
|
|
|
, autoconf, automake, libtool, pkg-config
|
|
|
|
, bzip2, libpcap, flex, yacc }:
|
2017-03-29 22:31:21 +02:00
|
|
|
|
2019-04-14 12:09:22 +02:00
|
|
|
let version = "1.6.17"; in
|
2017-03-29 22:31:21 +02:00
|
|
|
|
2019-04-14 12:09:22 +02:00
|
|
|
stdenv.mkDerivation {
|
2017-03-29 22:31:21 +02:00
|
|
|
name = "nfdump-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "phaag";
|
|
|
|
repo = "nfdump";
|
|
|
|
rev = "v${version}";
|
2019-04-14 12:09:22 +02:00
|
|
|
sha256 = "1z8zpvd9jfi2raafcbkykw55y0hd4mp74jvna19h3k0g86mqkxya";
|
2017-03-29 22:31:21 +02:00
|
|
|
};
|
|
|
|
|
2019-04-14 12:09:22 +02:00
|
|
|
nativeBuildInputs = [ autoconf automake flex libtool pkg-config yacc ];
|
|
|
|
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"
|
|
|
|
];
|
2017-03-29 22:31:21 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|