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
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "syslog-ng";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "4.6.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";
|
|
|
|
rev = "syslog-ng-${version}";
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-B9s7mprPpS4xc7mfJbsDaq2hB1rjYmuOnOnpu+NnMRs=";
|
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;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.syslog-ng.com";
|
|
|
|
description = "Next-generation syslogd with advanced networking and filtering capabilities";
|
2022-03-05 16:20:37 +00:00
|
|
|
license = with licenses; [ gpl2Plus lgpl21Plus ];
|
2023-10-19 13:55:26 +00:00
|
|
|
maintainers = with maintainers; [ vifino ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|