2023-09-27 17:29:20 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoconf-archive
|
|
|
|
, autoreconfHook
|
|
|
|
, bison
|
|
|
|
, flex
|
|
|
|
, openssl
|
|
|
|
, libcap
|
|
|
|
, curl
|
|
|
|
, which
|
|
|
|
, eventlog
|
|
|
|
, pkg-config
|
|
|
|
, glib
|
|
|
|
, hiredis
|
|
|
|
, systemd
|
|
|
|
, perl
|
|
|
|
, python3
|
|
|
|
, riemann_c_client
|
|
|
|
, protobufc
|
|
|
|
, pcre
|
|
|
|
, paho-mqtt-c
|
2024-04-05 06:31:06 +00:00
|
|
|
, python3Packages
|
2023-09-27 17:29:20 +00:00
|
|
|
, libnet
|
|
|
|
, json_c
|
|
|
|
, libuuid
|
|
|
|
, libivykis
|
|
|
|
, libxslt
|
|
|
|
, docbook_xsl
|
|
|
|
, pcre2
|
|
|
|
, mongoc
|
|
|
|
, rabbitmq-c
|
2018-03-22 18:54:22 +00:00
|
|
|
, libesmtp
|
2023-09-27 17:29:20 +00:00
|
|
|
, rdkafka
|
2024-01-26 21:58:35 +00:00
|
|
|
, gperf
|
2024-09-10 16:43:27 +00:00
|
|
|
, withGrpc ? true
|
|
|
|
, grpc
|
|
|
|
, protobuf
|
2018-03-22 18:54:22 +00:00
|
|
|
}:
|
2023-09-27 17:29:20 +00:00
|
|
|
let
|
|
|
|
python-deps = ps: with ps; [
|
|
|
|
boto3
|
|
|
|
botocore
|
|
|
|
cachetools
|
|
|
|
certifi
|
|
|
|
charset-normalizer
|
|
|
|
google-auth
|
|
|
|
idna
|
|
|
|
kubernetes
|
|
|
|
oauthlib
|
|
|
|
pyasn1
|
|
|
|
pyasn1-modules
|
|
|
|
python-dateutil
|
|
|
|
pyyaml
|
|
|
|
requests
|
|
|
|
requests-oauthlib
|
|
|
|
rsa
|
|
|
|
six
|
|
|
|
urllib3
|
|
|
|
websocket-client
|
|
|
|
ply
|
|
|
|
];
|
2023-10-18 15:48:27 +00:00
|
|
|
py = python3.withPackages python-deps;
|
2023-09-27 17:29:20 +00:00
|
|
|
in
|
2024-04-27 11:59:58 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2019-11-13 15:16:36 +00:00
|
|
|
pname = "syslog-ng";
|
2024-10-04 01:38:50 +00:00
|
|
|
version = "4.8.1";
|
2014-08-06 10:10:07 +00:00
|
|
|
|
2023-09-27 17:29:20 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "syslog-ng";
|
|
|
|
repo = "syslog-ng";
|
2024-04-27 11:59:58 +00:00
|
|
|
rev = "syslog-ng-${finalAttrs.version}";
|
2024-10-04 01:38:50 +00:00
|
|
|
hash = "sha256-YdGbDpGMC0DPuPSbfe9HvZshBVdv1s1+hiHDnhYbs6Q=";
|
2023-11-24 17:20:14 +00:00
|
|
|
fetchSubmodules = true;
|
2010-09-08 13:28:05 +00:00
|
|
|
};
|
2024-04-05 06:31:06 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook autoconf-archive pkg-config which bison flex libxslt perl gperf python3Packages.setuptools ];
|
2017-02-15 00:49:51 +00:00
|
|
|
|
2017-02-13 16:46:05 +00:00
|
|
|
buildInputs = [
|
2017-02-15 00:49:51 +00:00
|
|
|
libcap
|
|
|
|
curl
|
2017-02-13 16:46:05 +00:00
|
|
|
openssl
|
|
|
|
eventlog
|
|
|
|
glib
|
2023-10-18 15:48:27 +00:00
|
|
|
py
|
2017-02-13 16:46:05 +00:00
|
|
|
systemd
|
|
|
|
riemann_c_client
|
|
|
|
protobufc
|
|
|
|
pcre
|
2017-02-15 00:49:51 +00:00
|
|
|
libnet
|
|
|
|
json_c
|
|
|
|
libuuid
|
|
|
|
libivykis
|
|
|
|
mongoc
|
|
|
|
rabbitmq-c
|
2018-03-22 18:54:22 +00:00
|
|
|
libesmtp
|
2023-09-27 17:29:20 +00:00
|
|
|
pcre2
|
|
|
|
paho-mqtt-c
|
|
|
|
hiredis
|
|
|
|
rdkafka
|
2024-09-10 16:43:27 +00:00
|
|
|
] ++ (lib.optionals withGrpc [ protobuf grpc ]);
|
2017-02-13 16:46:05 +00:00
|
|
|
|
2014-06-24 21:52:54 +00:00
|
|
|
configureFlags = [
|
2017-02-15 00:49:51 +00:00
|
|
|
"--enable-manpages"
|
2023-09-27 17:29:20 +00:00
|
|
|
"--with-docbook=${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl"
|
2014-06-24 21:52:54 +00:00
|
|
|
"--enable-dynamic-linking"
|
|
|
|
"--enable-systemd"
|
2018-03-22 18:54:22 +00:00
|
|
|
"--enable-smtp"
|
2023-10-18 15:48:27 +00:00
|
|
|
"--with-python-packages=none"
|
2023-09-27 17:29:20 +00:00
|
|
|
"--with-hiredis=system"
|
2017-02-15 00:49:51 +00:00
|
|
|
"--with-ivykis=system"
|
|
|
|
"--with-librabbitmq-client=system"
|
|
|
|
"--with-mongoc=system"
|
|
|
|
"--with-jsonc=system"
|
|
|
|
"--with-systemd-journal=system"
|
2014-06-24 21:52:54 +00:00
|
|
|
"--with-systemdsystemunitdir=$(out)/etc/systemd/system"
|
2022-09-23 06:50:24 +00:00
|
|
|
"--without-compile-date"
|
2024-09-10 16:43:27 +00:00
|
|
|
] ++ (lib.optionals withGrpc [ "--enable-grpc" ]);
|
2010-09-08 13:28:05 +00:00
|
|
|
|
2017-02-15 00:49:51 +00:00
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
2018-09-25 11:53:18 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2024-04-27 11:59:58 +00:00
|
|
|
meta = {
|
2020-03-09 23:09:45 +00:00
|
|
|
homepage = "https://www.syslog-ng.com";
|
2013-10-06 09:49:53 +00:00
|
|
|
description = "Next-generation syslogd with advanced networking and filtering capabilities";
|
2024-04-27 11:59:58 +00:00
|
|
|
license = with lib.licenses; [ gpl2Plus lgpl21Plus ];
|
|
|
|
maintainers = with lib.maintainers; [ vifino ];
|
|
|
|
platforms = lib.platforms.linux;
|
2009-02-05 16:50:45 +00:00
|
|
|
};
|
2024-04-27 11:59:58 +00:00
|
|
|
})
|