2023-01-11 07:51:40 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoconf
|
|
|
|
, automake
|
|
|
|
, libtool
|
|
|
|
, pkg-config
|
|
|
|
, bzip2
|
|
|
|
, libpcap
|
|
|
|
, flex
|
|
|
|
, bison
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "nfdump";
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "1.7.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "phaag";
|
|
|
|
repo = "nfdump";
|
2023-01-11 07:51:40 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-oCaJPx6+C0NQSuUcsP54sycNLt/zaqe5c81dwHNBcnQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoconf
|
|
|
|
automake
|
|
|
|
flex
|
|
|
|
libtool
|
|
|
|
pkg-config
|
|
|
|
bison
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
bzip2
|
|
|
|
libpcap
|
|
|
|
];
|
2020-04-24 23:36:52 +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"
|
|
|
|
];
|
|
|
|
|
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";
|
2023-01-11 07:51:40 +00:00
|
|
|
changelog = "https://github.com/phaag/nfdump/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
2023-01-11 07:51:40 +00:00
|
|
|
maintainers = with maintainers; [ takikawa ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|