2023-10-19 13:55:26 +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-21 15:54:59 +00:00
|
|
|
, python3Packages
|
2023-10-19 13:55:26 +00:00
|
|
|
, libnet
|
|
|
|
, json_c
|
|
|
|
, libuuid
|
|
|
|
, libivykis
|
|
|
|
, libxslt
|
|
|
|
, docbook_xsl
|
|
|
|
, pcre2
|
|
|
|
, mongoc
|
|
|
|
, rabbitmq-c
|
2020-04-24 23:36:52 +00:00
|
|
|
, libesmtp
|
2023-10-19 13:55:26 +00:00
|
|
|
, rdkafka
|
2024-02-07 01:22:34 +00:00
|
|
|
, gperf
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
2023-10-19 13:55:26 +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-11-16 04:20:00 +00:00
|
|
|
py = python3.withPackages python-deps;
|
2023-10-19 13:55:26 +00:00
|
|
|
in
|
2024-05-15 15:35:15 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "syslog-ng";
|
2024-07-31 10:19:44 +00:00
|
|
|
version = "4.8.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "syslog-ng";
|
|
|
|
repo = "syslog-ng";
|
2024-05-15 15:35:15 +00:00
|
|
|
rev = "syslog-ng-${finalAttrs.version}";
|
2024-07-31 10:19:44 +00:00
|
|
|
hash = "sha256-sfCElufK80BU8I6pbdCJ+IlAPhSOt9MOYDy3E2hg5/A=";
|
2024-01-02 11:29:13 +00:00
|
|
|
fetchSubmodules = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2024-04-21 15:54:59 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook autoconf-archive pkg-config which bison flex libxslt perl gperf python3Packages.setuptools ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libcap
|
|
|
|
curl
|
|
|
|
openssl
|
|
|
|
eventlog
|
|
|
|
glib
|
2023-11-16 04:20:00 +00:00
|
|
|
py
|
2020-04-24 23:36:52 +00:00
|
|
|
systemd
|
|
|
|
riemann_c_client
|
|
|
|
protobufc
|
|
|
|
pcre
|
|
|
|
libnet
|
|
|
|
json_c
|
|
|
|
libuuid
|
|
|
|
libivykis
|
|
|
|
mongoc
|
|
|
|
rabbitmq-c
|
|
|
|
libesmtp
|
2023-10-19 13:55:26 +00:00
|
|
|
pcre2
|
|
|
|
paho-mqtt-c
|
|
|
|
hiredis
|
|
|
|
rdkafka
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-manpages"
|
2023-10-19 13:55:26 +00:00
|
|
|
"--with-docbook=${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl"
|
2020-04-24 23:36:52 +00:00
|
|
|
"--enable-dynamic-linking"
|
|
|
|
"--enable-systemd"
|
|
|
|
"--enable-smtp"
|
2023-11-16 04:20:00 +00:00
|
|
|
"--with-python-packages=none"
|
2023-10-19 13:55:26 +00:00
|
|
|
"--with-hiredis=system"
|
2020-04-24 23:36:52 +00:00
|
|
|
"--with-ivykis=system"
|
|
|
|
"--with-librabbitmq-client=system"
|
|
|
|
"--with-mongoc=system"
|
|
|
|
"--with-jsonc=system"
|
|
|
|
"--with-systemd-journal=system"
|
|
|
|
"--with-systemdsystemunitdir=$(out)/etc/systemd/system"
|
2022-09-30 11:47:45 +00:00
|
|
|
"--without-compile-date"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
meta = {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.syslog-ng.com";
|
|
|
|
description = "Next-generation syslogd with advanced networking and filtering capabilities";
|
2024-05-15 15:35:15 +00:00
|
|
|
license = with lib.licenses; [ gpl2Plus lgpl21Plus ];
|
|
|
|
maintainers = with lib.maintainers; [ vifino ];
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2024-05-15 15:35:15 +00:00
|
|
|
})
|