41 python-deps = ps: with ps; [
63 py = python3.withPackages python-deps;
65 stdenv.mkDerivation (finalAttrs: {
69 src = fetchFromGitHub {
72 rev = "syslog-ng-${finalAttrs.version}";
73 hash = "sha256-YdGbDpGMC0DPuPSbfe9HvZshBVdv1s1+hiHDnhYbs6Q=";
74 fetchSubmodules = true;
76 nativeBuildInputs = [ autoreconfHook autoconf-archive pkg-config which bison flex libxslt perl gperf python3Packages.setuptools ];
100 ] ++ (lib.optionals withGrpc [ protobuf grpc ]);
104 "--with-docbook=${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl"
105 "--enable-dynamic-linking"
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;
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;