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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

64 lines
1.2 KiB
Nix
Raw Normal View History

2023-01-04 19:21:08 +03:00
{ lib
, stdenv
, fetchFromGitHub
, autoconf
, automake
, libtool
, pkg-config
, bzip2
, libpcap
, flex
, bison
}:
2017-03-29 23:31:21 +03:00
2023-01-04 19:21:08 +03:00
stdenv.mkDerivation rec {
2019-08-14 00:52:01 +03:00
pname = "nfdump";
2024-02-17 22:32:19 +03:00
version = "1.7.4";
2017-03-29 23:31:21 +03:00
src = fetchFromGitHub {
owner = "phaag";
repo = "nfdump";
2023-01-04 19:21:08 +03:00
rev = "refs/tags/v${version}";
2024-02-17 22:32:19 +03:00
hash = "sha256-3V6n0cAD3EG91gkbB/9kNcJhwpZBY4ovUamyaVWAAcY=";
2017-03-29 23:31:21 +03:00
};
2023-01-04 19:21:08 +03: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 23:31:21 +03:00
meta = with lib; {
2017-03-29 23:31:21 +03:00
description = "Tools for working with netflow data";
longDescription = ''
nfdump is a set of tools for working with netflow data.
'';
2020-02-23 02:56:12 +03:00
homepage = "https://github.com/phaag/nfdump";
2023-01-04 19:21:08 +03:00
changelog = "https://github.com/phaag/nfdump/releases/tag/v${version}";
2017-03-29 23:31:21 +03:00
license = licenses.bsd3;
2023-01-04 19:21:08 +03:00
maintainers = with maintainers; [ takikawa ];
2017-03-29 23:31:21 +03:00
platforms = platforms.unix;
};
}