nixpkgs/pkgs/development/libraries/ndpi/default.nix

42 lines
875 B
Nix
Raw Normal View History

2021-08-15 16:11:29 +00:00
{ lib
, stdenv
, fetchFromGitHub
, which
, autoconf
, automake
, libtool
, libpcap
, json_c
2020-10-26 22:18:17 +00:00
, pkg-config }:
2017-02-22 08:19:47 +00:00
2021-07-17 18:37:27 +00:00
stdenv.mkDerivation rec {
2019-08-13 21:52:01 +00:00
pname = "ndpi";
2021-08-15 16:11:29 +00:00
version = "4.0";
2017-02-22 08:19:47 +00:00
src = fetchFromGitHub {
owner = "ntop";
repo = "nDPI";
2019-09-08 23:38:31 +00:00
rev = version;
2021-08-15 16:11:29 +00:00
sha256 = "0snzvlracc6s7r2pgdn0jqcc7nxjxzcivsa579h90g5ibhhplv5x";
2017-02-22 08:19:47 +00:00
};
configureScript = "./autogen.sh";
2021-08-15 16:11:29 +00:00
nativeBuildInputs = [ which autoconf automake libtool pkg-config ];
2020-10-26 22:18:17 +00:00
buildInputs = [
libpcap
2021-08-15 16:11:29 +00:00
json_c
2020-10-26 22:18:17 +00:00
];
2017-02-22 08:19:47 +00:00
meta = with lib; {
2017-02-22 08:19:47 +00:00
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/";
2017-02-22 08:19:47 +00:00
license = with licenses; lgpl3;
maintainers = with maintainers; [ takikawa ];
platforms = with platforms; unix;
};
}