Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenv 3, autoconf 4, automake 5, fetchFromGitHub 6, json_c 7, libpcap 8, libtool 9, pkg-config 10, which 11}: 12 13stdenv.mkDerivation rec { 14 pname = "ndpi"; 15 version = "4.6"; 16 17 src = fetchFromGitHub { 18 owner = "ntop"; 19 repo = "nDPI"; 20 rev = "refs/tags/${version}"; 21 hash = "sha256-S0lVh5FZewPbYG/1ikI2RroCSC7OI8Xmfeq73hYCHnY="; 22 }; 23 24 configureScript = "./autogen.sh"; 25 26 nativeBuildInputs = [ 27 autoconf 28 automake 29 libtool 30 pkg-config 31 which 32 ]; 33 34 buildInputs = [ 35 json_c 36 libpcap 37 ]; 38 39 meta = with lib; { 40 description = "A library for deep-packet inspection"; 41 longDescription = '' 42 nDPI is a library for deep-packet inspection based on OpenDPI. 43 ''; 44 homepage = "https://www.ntop.org/products/deep-packet-inspection/ndpi/"; 45 changelog = "https://github.com/ntop/nDPI/blob/${version}/CHANGELOG.md"; 46 license = with licenses; [ lgpl3Plus bsd3 ]; 47 maintainers = with maintainers; [ takikawa ]; 48 mainProgram = "ndpiReader"; 49 platforms = with platforms; unix; 50 }; 51}