diff --git a/pkgs/development/libraries/ndpi/default.nix b/pkgs/development/libraries/ndpi/default.nix index b798320c6913..a3b247d08ca9 100644 --- a/pkgs/development/libraries/ndpi/default.nix +++ b/pkgs/development/libraries/ndpi/default.nix @@ -1,13 +1,14 @@ { lib , stdenv -, fetchFromGitHub -, which , autoconf , automake -, libtool -, libpcap +, fetchFromGitHub , json_c -, pkg-config }: +, libpcap +, libtool +, pkg-config +, which +}: stdenv.mkDerivation rec { pname = "ndpi"; @@ -16,16 +17,23 @@ stdenv.mkDerivation rec { src = fetchFromGitHub { owner = "ntop"; repo = "nDPI"; - rev = version; - sha256 = "sha256-ZWWuyPGl+hbrfXdtPvCBqMReuJ4FiGx+qiI7qCz6wtQ="; + rev = "refs/tags/${version}"; + hash = "sha256-ZWWuyPGl+hbrfXdtPvCBqMReuJ4FiGx+qiI7qCz6wtQ="; }; configureScript = "./autogen.sh"; - nativeBuildInputs = [ which autoconf automake libtool pkg-config ]; + nativeBuildInputs = [ + autoconf + automake + libtool + pkg-config + which + ]; + buildInputs = [ - libpcap json_c + libpcap ]; meta = with lib; { @@ -34,6 +42,7 @@ stdenv.mkDerivation rec { 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/${version}/CHANGELOG.md"; license = with licenses; [ lgpl3Plus bsd3 ]; maintainers = with maintainers; [ takikawa ]; mainProgram = "ndpiReader";