nixpkgs/pkgs/development/libraries/ndpi/default.nix
R. RyanTM fbf13669b7
ndpi: 4.0 -> 4.2
* ndpi: 4.0 -> 4.2 (#159597)

* ndpi: clarify meta.licenses

Co-authored-by: Renaud <c0bw3b@users.noreply.github.com>
2022-02-17 18:59:25 +01:00

42 lines
887 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, which
, autoconf
, automake
, libtool
, libpcap
, json_c
, pkg-config }:
stdenv.mkDerivation rec {
pname = "ndpi";
version = "4.2";
src = fetchFromGitHub {
owner = "ntop";
repo = "nDPI";
rev = version;
sha256 = "sha256-ZWWuyPGl+hbrfXdtPvCBqMReuJ4FiGx+qiI7qCz6wtQ=";
};
configureScript = "./autogen.sh";
nativeBuildInputs = [ which autoconf automake libtool pkg-config ];
buildInputs = [
libpcap
json_c
];
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/";
license = with licenses; [ lgpl3Plus bsd3 ];
maintainers = with maintainers; [ takikawa ];
platforms = with platforms; unix;
};
}