2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, openssl, libcap, curl, which
|
2022-05-18 14:49:53 +00:00
|
|
|
, eventlog, pkg-config, glib, python3, systemd, perl
|
2020-04-24 23:36:52 +00:00
|
|
|
, riemann_c_client, protobufc, pcre, libnet
|
|
|
|
, json_c, libuuid, libivykis, mongoc, rabbitmq-c
|
|
|
|
, libesmtp
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "syslog-ng";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "3.37.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/${pname}/${pname}/releases/download/${pname}-${version}/${pname}-${version}.tar.gz";
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-1noyDLiWzV1i8k2eG+wTiEf6RhiuE6OUbK4rdcUo7hQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config which ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libcap
|
|
|
|
curl
|
|
|
|
openssl
|
|
|
|
eventlog
|
|
|
|
glib
|
|
|
|
perl
|
2022-05-18 14:49:53 +00:00
|
|
|
python3
|
2020-04-24 23:36:52 +00:00
|
|
|
systemd
|
|
|
|
riemann_c_client
|
|
|
|
protobufc
|
|
|
|
pcre
|
|
|
|
libnet
|
|
|
|
json_c
|
|
|
|
libuuid
|
|
|
|
libivykis
|
|
|
|
mongoc
|
|
|
|
rabbitmq-c
|
|
|
|
libesmtp
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-manpages"
|
|
|
|
"--enable-dynamic-linking"
|
|
|
|
"--enable-systemd"
|
|
|
|
"--enable-smtp"
|
|
|
|
"--with-ivykis=system"
|
|
|
|
"--with-librabbitmq-client=system"
|
|
|
|
"--with-mongoc=system"
|
|
|
|
"--with-jsonc=system"
|
|
|
|
"--with-systemd-journal=system"
|
|
|
|
"--with-systemdsystemunitdir=$(out)/etc/systemd/system"
|
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
2022-08-12 12:06:08 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|