2017-02-22 09:19:47 +01:00
|
|
|
{ stdenv, fetchFromGitHub, which, autoconf, automake, libtool, libpcap }:
|
|
|
|
|
2018-06-08 11:20:26 +02:00
|
|
|
let version = "2.2"; in
|
2017-02-22 09:19:47 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ndpi-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ntop";
|
|
|
|
repo = "nDPI";
|
|
|
|
rev = "${version}";
|
2018-06-08 11:20:26 +02:00
|
|
|
sha256 = "06gg8lhn944arlczmv5i40jkjdnl1nrvsmvm843l9ybcswpayv4m";
|
2017-02-22 09:19:47 +01: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 20:42:46 +01:00
|
|
|
homepage = https://www.ntop.org/products/deep-packet-inspection/ndpi/;
|
2017-02-22 09:19:47 +01:00
|
|
|
license = with licenses; lgpl3;
|
|
|
|
maintainers = with maintainers; [ takikawa ];
|
|
|
|
platforms = with platforms; unix;
|
|
|
|
};
|
|
|
|
}
|