My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/libraries/ndpi/default.nix

42 lines
919 B

{ 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 ];
mainProgram = "ndpiReader";
platforms = with platforms; unix;
};
}