nixpkgs/pkgs/tools/networking/nfdump/default.nix

45 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub
, autoconf, automake, libtool, pkg-config
, bzip2, libpcap, flex, yacc }:
2017-03-29 21:31:21 +01:00
let version = "1.6.18"; in
2017-03-29 21:31:21 +01:00
stdenv.mkDerivation {
2019-08-13 22:52:01 +01:00
pname = "nfdump";
inherit version;
2017-03-29 21:31:21 +01:00
src = fetchFromGitHub {
owner = "phaag";
repo = "nfdump";
rev = "v${version}";
sha256 = "0hfgj9lghkjrjxww0jdk8gxr6g4gbmbdmfg9ddg5jj6gcra21gha";
2017-03-29 21:31:21 +01: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 21:31:21 +01: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;
};
}