depot/third_party/nixpkgs/pkgs/tools/networking/nfdump/default.nix
Default email 93ffb054db Project import generated by Copybara.
GitOrigin-RevId: 6f0c00907bbd81b47052eef59f7b284926a77289
2020-11-24 21:58:05 +01:00

44 lines
1.1 KiB
Nix

{ stdenv, fetchFromGitHub
, autoconf, automake, libtool, pkg-config
, bzip2, libpcap, flex, yacc }:
let version = "1.6.22"; in
stdenv.mkDerivation {
pname = "nfdump";
inherit version;
src = fetchFromGitHub {
owner = "phaag";
repo = "nfdump";
rev = "v${version}";
sha256 = "14x2k85ard1kp99hhd90zsmvyw24g03m84rn13gb4grm9gjggzrj";
};
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"
];
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;
};
}