792b51d22f
GitOrigin-RevId: d5f237872975e6fb6f76eef1368b5634ffcd266f
41 lines
887 B
Nix
41 lines
887 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, which
|
|
, autoconf
|
|
, automake
|
|
, libtool
|
|
, libpcap
|
|
, json_c
|
|
, pkg-config }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ndpi";
|
|
version = "4.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ntop";
|
|
repo = "nDPI";
|
|
rev = version;
|
|
sha256 = "sha256-ZWWuyPGl+hbrfXdtPvCBqMReuJ4FiGx+qiI7qCz6wtQ=";
|
|
};
|
|
|
|
configureScript = "./autogen.sh";
|
|
|
|
nativeBuildInputs = [ which autoconf automake libtool pkg-config ];
|
|
buildInputs = [
|
|
libpcap
|
|
json_c
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A library for deep-packet inspection";
|
|
longDescription = ''
|
|
nDPI is a library for deep-packet inspection based on OpenDPI.
|
|
'';
|
|
homepage = "https://www.ntop.org/products/deep-packet-inspection/ndpi/";
|
|
license = with licenses; [ lgpl3Plus bsd3 ];
|
|
maintainers = with maintainers; [ takikawa ];
|
|
platforms = with platforms; unix;
|
|
};
|
|
}
|