blob: d9d8f5895a2d37fc58150e03e34288c6bfdf3639 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{ lib
, stdenv
, autoconf
, automake
, fetchFromGitHub
, json_c
, libpcap
, libtool
, pkg-config
, which
}:
stdenv.mkDerivation rec {
pname = "ndpi";
version = "4.6";
src = fetchFromGitHub {
owner = "ntop";
repo = "nDPI";
rev = "refs/tags/${version}";
hash = "sha256-S0lVh5FZewPbYG/1ikI2RroCSC7OI8Xmfeq73hYCHnY=";
};
configureScript = "./autogen.sh";
nativeBuildInputs = [
autoconf
automake
libtool
pkg-config
which
];
buildInputs = [
json_c
libpcap
];
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/";
changelog = "https://github.com/ntop/nDPI/blob/${version}/CHANGELOG.md";
license = with licenses; [ lgpl3Plus bsd3 ];
maintainers = with maintainers; [ takikawa ];
mainProgram = "ndpiReader";
platforms = with platforms; unix;
};
}
|