From 6b0736b01df9079caa6a8539713016e7508a9f58 Mon Sep 17 00:00:00 2001 From: Asumu Takikawa Date: Wed, 29 Mar 2017 13:31:21 -0700 Subject: [PATCH] nfdump: init at 1.6.15 --- pkgs/tools/networking/nfdump/default.nix | 28 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/tools/networking/nfdump/default.nix diff --git a/pkgs/tools/networking/nfdump/default.nix b/pkgs/tools/networking/nfdump/default.nix new file mode 100644 index 000000000000..f7a04eff0461 --- /dev/null +++ b/pkgs/tools/networking/nfdump/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchFromGitHub, bzip2, yacc, flex }: + +let version = "1.6.15"; in + +stdenv.mkDerivation rec { + name = "nfdump-${version}"; + + src = fetchFromGitHub { + owner = "phaag"; + repo = "nfdump"; + rev = "v${version}"; + sha256 = "07grsfkfjy05yfqfcmgp5xpavpck9ps6q7x8x8j79fym5d8gwak5"; + }; + + nativeBuildInputs = [yacc flex]; + buildInputs = [bzip2]; + + 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 266a264bac0a..aaf91b7a571b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -942,6 +942,8 @@ with pkgs; mpdris2 = callPackage ../tools/audio/mpdris2 { }; + nfdump = callPackage ../tools/networking/nfdump { }; + playerctl = callPackage ../tools/audio/playerctl { }; syscall_limiter = callPackage ../os-specific/linux/syscall_limiter {};