nixpkgs/pkgs/tools/networking/nfdump/default.nix
tobim 674d7f42c3 nfdump: 1.6.16 -> 1.6.17 (#57306)
* nfdump: 1.6.16 -> 1.6.17

Build system switched to autotools in the new version.
Also enabled the build of a few additional tools.
- Remove unneeded call to patchShebangs
- Add a comment explaining the darwin libtoolize workaround
2019-04-14 12:09:22 +02:00

44 lines
1.1 KiB
Nix

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