nixpkgs/pkgs/tools/system/syslog-ng/default.nix
R. RyanTM 9c70e73116
syslogng: 3.34.1 -> 3.35.1
* syslogng: 3.34.1 -> 3.35.1 (#149134)
and update meta.license

Co-authored-by: Renaud <c0bw3b@users.noreply.github.com>
2022-02-24 12:45:35 +01:00

65 lines
1.5 KiB
Nix

{ lib, stdenv, fetchurl, openssl, libcap, curl, which
, eventlog, pkg-config, glib, python2, systemd, perl
, riemann_c_client, protobufc, pcre, libnet
, json_c, libuuid, libivykis, mongoc, rabbitmq-c
, libesmtp
}:
stdenv.mkDerivation rec {
pname = "syslog-ng";
version = "3.35.1";
src = fetchurl {
url = "https://github.com/${pname}/${pname}/releases/download/${pname}-${version}/${pname}-${version}.tar.gz";
sha256 = "sha256-HQI4sGs+WYfIWeW1Kezuc491us/wSxSTmLH+jLsSHlM=";
};
nativeBuildInputs = [ pkg-config which ];
buildInputs = [
libcap
curl
openssl
eventlog
glib
perl
python2
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;
meta = with lib; {
homepage = "https://www.syslog-ng.com";
description = "Next-generation syslogd with advanced networking and filtering capabilities";
license = with licenses; [ gpl2Plus lgpl21Plus ];
maintainers = with maintainers; [ fpletz ];
platforms = platforms.linux;
};
}