2023-01-04 16:21:08 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoconf
|
|
|
|
, automake
|
|
|
|
, libtool
|
|
|
|
, pkg-config
|
|
|
|
, bzip2
|
|
|
|
, libpcap
|
|
|
|
, flex
|
|
|
|
, bison
|
|
|
|
}:
|
2017-03-29 20:31:21 +00:00
|
|
|
|
2023-01-04 16:21:08 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "nfdump";
|
2023-09-03 10:50:18 +00:00
|
|
|
version = "1.7.3";
|
2017-03-29 20:31:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "phaag";
|
|
|
|
repo = "nfdump";
|
2023-01-04 16:21:08 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-09-03 10:50:18 +00:00
|
|
|
hash = "sha256-etmelBCZQKscuVJt5dBtwQVjiZNUFLTu11Gw0jmYcAg=";
|
2017-03-29 20:31:21 +00:00
|
|
|
};
|
|
|
|
|
2023-01-04 16:21:08 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoconf
|
|
|
|
automake
|
|
|
|
flex
|
|
|
|
libtool
|
|
|
|
pkg-config
|
|
|
|
bison
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
bzip2
|
|
|
|
libpcap
|
|
|
|
];
|
2019-04-14 10:09:22 +00:00
|
|
|
|
|
|
|
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 20:31:21 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-03-29 20:31:21 +00:00
|
|
|
description = "Tools for working with netflow data";
|
|
|
|
longDescription = ''
|
|
|
|
nfdump is a set of tools for working with netflow data.
|
|
|
|
'';
|
2020-02-22 23:56:12 +00:00
|
|
|
homepage = "https://github.com/phaag/nfdump";
|
2023-01-04 16:21:08 +00:00
|
|
|
changelog = "https://github.com/phaag/nfdump/releases/tag/v${version}";
|
2017-03-29 20:31:21 +00:00
|
|
|
license = licenses.bsd3;
|
2023-01-04 16:21:08 +00:00
|
|
|
maintainers = with maintainers; [ takikawa ];
|
2017-03-29 20:31:21 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|