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