mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 05:50:00 +00:00
Release notes: https://github.com/ntop/nDPI/releases/tag/6.0 Explicitly build the static library, to have the same library output as before, or else we break ntopng.
56 lines
1.1 KiB
Nix
56 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
autoreconfHook,
|
|
fetchFromGitHub,
|
|
json_c,
|
|
libpcap,
|
|
libtool,
|
|
pkg-config,
|
|
which,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "ndpi";
|
|
version = "6.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ntop";
|
|
repo = "nDPI";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-C6SNdXGaKu2MHDK2eA8bA/2yRzDQt8jZWsbPfJzRg2g=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
libtool
|
|
pkg-config
|
|
which
|
|
];
|
|
|
|
buildInputs = [
|
|
json_c
|
|
libpcap
|
|
];
|
|
|
|
configureFlags = [
|
|
"--enable-static"
|
|
];
|
|
|
|
meta = {
|
|
description = "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/${finalAttrs.version}/CHANGELOG.md";
|
|
license = with lib.licenses; [
|
|
lgpl3Plus
|
|
bsd3
|
|
];
|
|
maintainers = with lib.maintainers; [ takikawa ];
|
|
mainProgram = "ndpiReader";
|
|
platforms = with lib.platforms; unix;
|
|
};
|
|
})
|