Files
nixpkgs/pkgs/by-name/nd/ndpi/package.nix
Bjørn Forsman f27e8695dc ndpi: 5.0 -> 6.0
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.
2026-09-22 19:33:30 +02:00

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;
};
})