nixpkgs/pkgs/by-name/nd/ndpi/package.nix
Bjørn Forsman 1ad93cc74e ndpi: 4.12 -> 4.10
Downgrade ndpi (again!) to fix building ntopng, which is the only user
of this library. (Note that ndpi 4.11 doesn't exist.)

Fixes: 34d82aa007e513f31da76e4ffb33503f1a3c8447 ("ndpi: 4.10 -> 4.12 (#381339)")

Ref. https://github.com/NixOS/nixpkgs/issues/380866
2025-03-22 20:00:45 +01:00

52 lines
1.0 KiB
Nix

{
lib,
stdenv,
autoreconfHook,
fetchFromGitHub,
json_c,
libpcap,
libtool,
pkg-config,
which,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "ndpi";
version = "4.10";
src = fetchFromGitHub {
owner = "ntop";
repo = "nDPI";
tag = finalAttrs.version;
hash = "sha256-iXqvDMJsOXcg9YkqKFgInLLfH6j/HEp4bEaIl6dpVtc=";
};
nativeBuildInputs = [
autoreconfHook
libtool
pkg-config
which
];
buildInputs = [
json_c
libpcap
];
meta = with lib; {
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 licenses; [
lgpl3Plus
bsd3
];
maintainers = with maintainers; [ takikawa ];
mainProgram = "ndpiReader";
platforms = with platforms; unix;
};
})