2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, which, autoconf, automake, libtool, libpcap
|
2020-10-26 22:18:17 +00:00
|
|
|
, pkg-config }:
|
2017-02-22 08:19:47 +00:00
|
|
|
|
2020-10-26 22:18:17 +00:00
|
|
|
let version = "3.4"; 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;
|
2020-10-26 22:18:17 +00:00
|
|
|
sha256 = "0xjh9gv0mq0213bjfs5ahrh6m7l7g99jjg8104c0pw54hz0p5pq1";
|
2017-02-22 08:19:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
configureScript = "./autogen.sh";
|
|
|
|
|
|
|
|
nativeBuildInputs = [which autoconf automake libtool];
|
2020-10-26 22:18:17 +00:00
|
|
|
buildInputs = [
|
|
|
|
libpcap
|
|
|
|
pkg-config
|
|
|
|
];
|
2017-02-22 08:19:47 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2017-02-22 08:19:47 +00:00
|
|
|
description = "A library for deep-packet inspection";
|
|
|
|
longDescription = ''
|
|
|
|
nDPI is a library for deep-packet inspection based on OpenDPI.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01: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;
|
|
|
|
};
|
|
|
|
}
|