2021-08-22 07:53:02 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2024-02-07 01:22:34 +00:00
|
|
|
, autoreconfHook
|
2023-04-12 12:48:02 +00:00
|
|
|
, fetchFromGitHub
|
2021-08-22 07:53:02 +00:00
|
|
|
, json_c
|
2023-04-12 12:48:02 +00:00
|
|
|
, libpcap
|
|
|
|
, libtool
|
|
|
|
, pkg-config
|
|
|
|
, which
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "ndpi";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "4.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ntop";
|
|
|
|
repo = "nDPI";
|
2024-02-07 01:22:34 +00:00
|
|
|
rev = "refs/tags/${finalAttrs.version}";
|
|
|
|
hash = "sha256-V3hRDQ141pbR5jJK2QlP7BF2CEbuzqIvo+iTx3EGhRY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
nativeBuildInputs = [
|
2024-02-07 01:22:34 +00:00
|
|
|
autoreconfHook
|
2023-04-12 12:48:02 +00:00
|
|
|
libtool
|
|
|
|
pkg-config
|
|
|
|
which
|
|
|
|
];
|
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
buildInputs = [
|
2021-08-22 07:53:02 +00:00
|
|
|
json_c
|
2023-04-12 12:48:02 +00:00
|
|
|
libpcap
|
2020-11-30 08:33:03 +00:00
|
|
|
];
|
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/";
|
2024-02-07 01:22:34 +00:00
|
|
|
changelog = "https://github.com/ntop/nDPI/blob/${finalAttrs.version}/CHANGELOG.md";
|
2022-02-20 05:27:41 +00:00
|
|
|
license = with licenses; [ lgpl3Plus bsd3 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ takikawa ];
|
2022-05-18 14:49:53 +00:00
|
|
|
mainProgram = "ndpiReader";
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = with platforms; unix;
|
|
|
|
};
|
2024-02-07 01:22:34 +00:00
|
|
|
})
|