ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / sy / syslogng / package.nix
blobd70eed9a2f111a829bd88d5e06197ee61771f7e9
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , autoconf-archive
5 , autoreconfHook
6 , bison
7 , flex
8 , openssl
9 , libcap
10 , curl
11 , which
12 , eventlog
13 , pkg-config
14 , glib
15 , hiredis
16 , systemd
17 , perl
18 , python3
19 , riemann_c_client
20 , protobufc
21 , pcre
22 , paho-mqtt-c
23 , python3Packages
24 , libnet
25 , json_c
26 , libuuid
27 , libivykis
28 , libxslt
29 , docbook_xsl
30 , pcre2
31 , mongoc
32 , rabbitmq-c
33 , libesmtp
34 , rdkafka
35 , gperf
36 , withGrpc ? true
37 , grpc
38 , protobuf
40 let
41   python-deps = ps: with ps; [
42     boto3
43     botocore
44     cachetools
45     certifi
46     charset-normalizer
47     google-auth
48     idna
49     kubernetes
50     oauthlib
51     pyasn1
52     pyasn1-modules
53     python-dateutil
54     pyyaml
55     requests
56     requests-oauthlib
57     rsa
58     six
59     urllib3
60     websocket-client
61     ply
62   ];
63   py = python3.withPackages python-deps;
65 stdenv.mkDerivation (finalAttrs: {
66   pname = "syslog-ng";
67   version = "4.8.1";
69   src = fetchFromGitHub {
70     owner = "syslog-ng";
71     repo = "syslog-ng";
72     rev = "syslog-ng-${finalAttrs.version}";
73     hash = "sha256-YdGbDpGMC0DPuPSbfe9HvZshBVdv1s1+hiHDnhYbs6Q=";
74     fetchSubmodules = true;
75   };
76   nativeBuildInputs = [ autoreconfHook autoconf-archive pkg-config which bison flex libxslt perl gperf python3Packages.setuptools ];
78   buildInputs = [
79     libcap
80     curl
81     openssl
82     eventlog
83     glib
84     py
85     systemd
86     riemann_c_client
87     protobufc
88     pcre
89     libnet
90     json_c
91     libuuid
92     libivykis
93     mongoc
94     rabbitmq-c
95     libesmtp
96     pcre2
97     paho-mqtt-c
98     hiredis
99     rdkafka
100   ] ++ (lib.optionals withGrpc [ protobuf grpc ]);
102   configureFlags = [
103     "--enable-manpages"
104     "--with-docbook=${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl"
105     "--enable-dynamic-linking"
106     "--enable-systemd"
107     "--enable-smtp"
108     "--with-python-packages=none"
109     "--with-hiredis=system"
110     "--with-ivykis=system"
111     "--with-librabbitmq-client=system"
112     "--with-mongoc=system"
113     "--with-jsonc=system"
114     "--with-systemd-journal=system"
115     "--with-systemdsystemunitdir=$(out)/etc/systemd/system"
116     "--without-compile-date"
117   ] ++ (lib.optionals withGrpc [ "--enable-grpc" ]);
119   outputs = [ "out" "man" ];
121   enableParallelBuilding = true;
123   meta = {
124     homepage = "https://www.syslog-ng.com";
125     description = "Next-generation syslogd with advanced networking and filtering capabilities";
126     license = with lib.licenses; [ gpl2Plus lgpl21Plus ];
127     maintainers = with lib.maintainers; [ vifino ];
128     platforms = lib.platforms.linux;
129   };