2017-02-22 08:19:47 +00:00
|
|
|
{ stdenv, fetchFromGitHub, which, autoconf, automake, libtool, libpcap }:
|
|
|
|
|
2019-04-15 13:00:11 +01:00
|
|
|
let version = "2.8"; in
|
2017-02-22 08:19:47 +00:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "ndpi";
|
|
|
|
inherit version;
|
2017-02-22 08:19:47 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ntop";
|
|
|
|
repo = "nDPI";
|
2019-09-09 00:38:31 +01:00
|
|
|
rev = version;
|
2019-04-15 13:00:11 +01:00
|
|
|
sha256 = "0lc4vga89pm954vf92g9fa6xwsjkb13jd6wrcc35zy5j04nf9rzf";
|
2017-02-22 08:19:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
configureScript = "./autogen.sh";
|
|
|
|
|
|
|
|
nativeBuildInputs = [which autoconf automake libtool];
|
|
|
|
buildInputs = [libpcap];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A library for deep-packet inspection";
|
|
|
|
longDescription = ''
|
|
|
|
nDPI is a library for deep-packet inspection based on OpenDPI.
|
|
|
|
'';
|
2018-01-05 19:42:46 +00:00
|
|
|
homepage = https://www.ntop.org/products/deep-packet-inspection/ndpi/;
|
2017-02-22 08:19:47 +00:00
|
|
|
license = with licenses; lgpl3;
|
|
|
|
maintainers = with maintainers; [ takikawa ];
|
|
|
|
platforms = with platforms; unix;
|
|
|
|
};
|
|
|
|
}
|