{ 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; }; }