2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, which, autoconf, automake, libtool, libpcap
|
2020-11-30 08:33:03 +00:00
|
|
|
, pkg-config }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-18 21:22:44 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "ndpi";
|
2021-07-18 21:22:44 +00:00
|
|
|
version = "3.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ntop";
|
|
|
|
repo = "nDPI";
|
|
|
|
rev = version;
|
2020-11-30 08:33:03 +00:00
|
|
|
sha256 = "0xjh9gv0mq0213bjfs5ahrh6m7l7g99jjg8104c0pw54hz0p5pq1";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
configureScript = "./autogen.sh";
|
|
|
|
|
|
|
|
nativeBuildInputs = [which autoconf automake libtool];
|
2020-11-30 08:33:03 +00:00
|
|
|
buildInputs = [
|
|
|
|
libpcap
|
|
|
|
pkg-config
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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; lgpl3;
|
|
|
|
maintainers = with maintainers; [ takikawa ];
|
|
|
|
platforms = with platforms; unix;
|
|
|
|
};
|
|
|
|
}
|