about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/ndpi
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/ndpi')
-rw-r--r--nixpkgs/pkgs/development/libraries/ndpi/default.nix47
1 files changed, 47 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/ndpi/default.nix b/nixpkgs/pkgs/development/libraries/ndpi/default.nix
new file mode 100644
index 000000000000..94e249425717
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/ndpi/default.nix
@@ -0,0 +1,47 @@
+{ lib
+, stdenv
+, autoreconfHook
+, fetchFromGitHub
+, json_c
+, libpcap
+, libtool
+, pkg-config
+, which
+}:
+
+stdenv.mkDerivation (finalAttrs: {
+  pname = "ndpi";
+  version = "4.8";
+
+  src = fetchFromGitHub {
+    owner = "ntop";
+    repo = "nDPI";
+    rev = "refs/tags/${finalAttrs.version}";
+    hash = "sha256-V3hRDQ141pbR5jJK2QlP7BF2CEbuzqIvo+iTx3EGhRY=";
+  };
+
+  nativeBuildInputs = [
+    autoreconfHook
+    libtool
+    pkg-config
+    which
+  ];
+
+  buildInputs = [
+    json_c
+    libpcap
+  ];
+
+  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/";
+    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;
+  };
+})