btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / nd / ndpi / package.nix
blob7ede8a409c3b1474f00c0c79888b401aa32903d2
1 { lib
2 , stdenv
3 , autoreconfHook
4 , fetchFromGitHub
5 , json_c
6 , libpcap
7 , libtool
8 , pkg-config
9 , which
12 stdenv.mkDerivation (finalAttrs: {
13   pname = "ndpi";
14   version = "4.10";
16   src = fetchFromGitHub {
17     owner = "ntop";
18     repo = "nDPI";
19     rev = "refs/tags/${finalAttrs.version}";
20     hash = "sha256-iXqvDMJsOXcg9YkqKFgInLLfH6j/HEp4bEaIl6dpVtc=";
21   };
23   nativeBuildInputs = [
24     autoreconfHook
25     libtool
26     pkg-config
27     which
28   ];
30   buildInputs = [
31     json_c
32     libpcap
33   ];
35   meta = with lib; {
36     description = "Library for deep-packet inspection";
37     longDescription = ''
38       nDPI is a library for deep-packet inspection based on OpenDPI.
39     '';
40     homepage = "https://www.ntop.org/products/deep-packet-inspection/ndpi/";
41     changelog = "https://github.com/ntop/nDPI/blob/${finalAttrs.version}/CHANGELOG.md";
42     license = with licenses; [ lgpl3Plus bsd3 ];
43     maintainers = with maintainers; [ takikawa ];
44     mainProgram = "ndpiReader";
45     platforms = with platforms; unix;
46   };