4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
{ lib, stdenv, fetchFromGitHub
|
|
, autoconf, automake, libtool, pkg-config
|
|
, bzip2, libpcap, flex, yacc }:
|
|
|
|
let version = "1.6.22"; in
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "nfdump";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "phaag";
|
|
repo = "nfdump";
|
|
rev = "v${version}";
|
|
sha256 = "14x2k85ard1kp99hhd90zsmvyw24g03m84rn13gb4grm9gjggzrj";
|
|
};
|
|
|
|
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 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;
|
|
};
|
|
}
|