diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/ndpi')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/ndpi/default.nix | 30 |
1 files changed, 30 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..0fd531fa282f --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/ndpi/default.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchFromGitHub, which, autoconf, automake, libtool, libpcap }: + +let version = "2.2"; in + +stdenv.mkDerivation rec { + name = "ndpi-${version}"; + + src = fetchFromGitHub { + owner = "ntop"; + repo = "nDPI"; + rev = "${version}"; + sha256 = "06gg8lhn944arlczmv5i40jkjdnl1nrvsmvm843l9ybcswpayv4m"; + }; + + configureScript = "./autogen.sh"; + + nativeBuildInputs = [which autoconf automake libtool]; + buildInputs = [libpcap]; + + meta = with stdenv.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; lgpl3; + maintainers = with maintainers; [ takikawa ]; + platforms = with platforms; unix; + }; +} |