Merge pull request #329823 from ExpidusOS/fix/pkgsllvm/elfutils
[NixPkgs.git] / pkgs / by-name / sy / syslogng / package.nix
blobc8f45f834a671f5bd19e1b4285575afbcd5d6c9d
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
37 let
38   python-deps = ps: with ps; [
39     boto3
40     botocore
41     cachetools
42     certifi
43     charset-normalizer
44     google-auth
45     idna
46     kubernetes
47     oauthlib
48     pyasn1
49     pyasn1-modules
50     python-dateutil
51     pyyaml
52     requests
53     requests-oauthlib
54     rsa
55     six
56     urllib3
57     websocket-client
58     ply
59   ];
60   py = python3.withPackages python-deps;
62 stdenv.mkDerivation (finalAttrs: {
63   pname = "syslog-ng";
64   version = "4.7.1";
66   src = fetchFromGitHub {
67     owner = "syslog-ng";
68     repo = "syslog-ng";
69     rev = "syslog-ng-${finalAttrs.version}";
70     hash = "sha256-runFMUxQv7B023I38QfGqn89ZbzA5vMXHOOkYwMxArI=";
71     fetchSubmodules = true;
72   };
73   nativeBuildInputs = [ autoreconfHook autoconf-archive pkg-config which bison flex libxslt perl gperf python3Packages.setuptools ];
75   buildInputs = [
76     libcap
77     curl
78     openssl
79     eventlog
80     glib
81     py
82     systemd
83     riemann_c_client
84     protobufc
85     pcre
86     libnet
87     json_c
88     libuuid
89     libivykis
90     mongoc
91     rabbitmq-c
92     libesmtp
93     pcre2
94     paho-mqtt-c
95     hiredis
96     rdkafka
97   ];
99   configureFlags = [
100     "--enable-manpages"
101     "--with-docbook=${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl"
102     "--enable-dynamic-linking"
103     "--enable-systemd"
104     "--enable-smtp"
105     "--with-python-packages=none"
106     "--with-hiredis=system"
107     "--with-ivykis=system"
108     "--with-librabbitmq-client=system"
109     "--with-mongoc=system"
110     "--with-jsonc=system"
111     "--with-systemd-journal=system"
112     "--with-systemdsystemunitdir=$(out)/etc/systemd/system"
113     "--without-compile-date"
114   ];
116   outputs = [ "out" "man" ];
118   enableParallelBuilding = true;
120   meta = {
121     homepage = "https://www.syslog-ng.com";
122     description = "Next-generation syslogd with advanced networking and filtering capabilities";
123     license = with lib.licenses; [ gpl2Plus lgpl21Plus ];
124     maintainers = with lib.maintainers; [ vifino ];
125     platforms = lib.platforms.linux;
126   };