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

45 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub
, autoconf, automake, libtool, pkg-config
, bzip2, libpcap, flex, bison }:
2017-03-29 22:31:21 +02:00
2021-08-15 14:44:03 +02:00
let version = "1.6.23"; in
2017-03-29 22:31:21 +02:00
stdenv.mkDerivation {
2019-08-13 23:52:01 +02:00
pname = "nfdump";
inherit version;
2017-03-29 22:31:21 +02:00
src = fetchFromGitHub {
owner = "phaag";
repo = "nfdump";
rev = "v${version}";
2021-08-15 14:44:03 +02:00
sha256 = "sha256-aM7U+JD8EtxEusvObsRgqS0aqfTfF3vYxCqvw0bgX20=";
2017-03-29 22:31:21 +02:00
};
nativeBuildInputs = [ autoconf automake flex libtool pkg-config bison ];
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 22:31:21 +02:00
meta = with lib; {
2017-03-29 22:31:21 +02:00
description = "Tools for working with netflow data";
longDescription = ''
nfdump is a set of tools for working with netflow data.
'';
2020-02-23 00:56:12 +01:00
homepage = "https://github.com/phaag/nfdump";
2017-03-29 22:31:21 +02:00
license = licenses.bsd3;
maintainers = [ maintainers.takikawa ];
platforms = platforms.unix;
};
}