depot/third_party/nixpkgs/pkgs/tools/networking/nfdump/default.nix
Default email b6f2ab0a42 Project import generated by Copybara.
GitOrigin-RevId: 253aecf69ed7595aaefabde779aa6449195bebb7
2021-08-18 15:19:15 +02:00

44 lines
1.1 KiB
Nix

{ lib, stdenv, fetchFromGitHub
, autoconf, automake, libtool, pkg-config
, bzip2, libpcap, flex, bison }:
let version = "1.6.23"; in
stdenv.mkDerivation {
pname = "nfdump";
inherit version;
src = fetchFromGitHub {
owner = "phaag";
repo = "nfdump";
rev = "v${version}";
sha256 = "sha256-aM7U+JD8EtxEusvObsRgqS0aqfTfF3vYxCqvw0bgX20=";
};
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"
];
meta = with 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;
};
}