nixpkgs/pkgs/tools/system/syslog-ng/default.nix

65 lines
1.4 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, openssl, libcap, curl, which
, eventlog, pkg-config, glib, python2, systemd, perl
2017-02-15 00:49:51 +00:00
, riemann_c_client, protobufc, pcre, libnet
2018-03-22 18:54:22 +00:00
, json_c, libuuid, libivykis, mongoc, rabbitmq-c
, libesmtp
}:
2017-02-15 00:49:51 +00:00
stdenv.mkDerivation rec {
pname = "syslog-ng";
2021-10-28 22:57:09 +00:00
version = "3.34.1";
2017-02-15 00:49:51 +00:00
src = fetchurl {
url = "https://github.com/${pname}/${pname}/releases/download/${pname}-${version}/${pname}-${version}.tar.gz";
2021-10-28 22:57:09 +00:00
sha256 = "sha256-zs457BxoyI1JNwXgpSi4PQONo4TonUg4OTzMdfYqLUw=";
};
nativeBuildInputs = [ pkg-config which ];
2017-02-15 00:49:51 +00:00
buildInputs = [
2017-02-15 00:49:51 +00:00
libcap
curl
openssl
eventlog
glib
2017-02-15 00:49:51 +00:00
perl
python2
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
];
2014-06-24 21:52:54 +00:00
configureFlags = [
2017-02-15 00:49:51 +00:00
"--enable-manpages"
2014-06-24 21:52:54 +00:00
"--enable-dynamic-linking"
"--enable-systemd"
2018-03-22 18:54:22 +00:00
"--enable-smtp"
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"
];
2017-02-15 00:49:51 +00:00
outputs = [ "out" "man" ];
2018-09-25 11:53:18 +00:00
enableParallelBuilding = true;
meta = with lib; {
2020-03-09 23:09:45 +00:00
homepage = "https://www.syslog-ng.com";
description = "Next-generation syslogd with advanced networking and filtering capabilities";
license = licenses.gpl2;
maintainers = with maintainers; [ fpletz ];
platforms = platforms.linux;
};
}