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

63 lines
1.4 KiB
Nix
Raw Normal View History

2017-02-15 01:49:51 +01:00
{ stdenv, fetchurl, openssl, libcap, curl, which
, eventlog, pkgconfig, glib, python, systemd, perl
2017-02-15 01:49:51 +01:00
, riemann_c_client, protobufc, pcre, libnet
, json_c, libuuid, libivykis, mongoc, rabbitmq-c }:
let
pname = "syslog-ng";
in
stdenv.mkDerivation rec {
2017-02-15 01:49:51 +01:00
name = "${pname}-${version}";
2018-03-05 21:55:17 +01:00
version = "3.14.1";
2017-02-15 01:49:51 +01:00
src = fetchurl {
url = "https://github.com/balabit/${pname}/releases/download/${name}/${name}.tar.gz";
2018-03-05 21:55:17 +01:00
sha256 = "0i79qib47cwg6kd5h4w277h942d6ahb1aj09243rlallr46jci82";
};
2017-02-15 01:49:51 +01:00
nativeBuildInputs = [ pkgconfig which ];
buildInputs = [
2017-02-15 01:49:51 +01:00
libcap
curl
openssl
eventlog
glib
2017-02-15 01:49:51 +01:00
perl
python
systemd
riemann_c_client
protobufc
pcre
2017-02-15 01:49:51 +01:00
libnet
json_c
libuuid
libivykis
mongoc
rabbitmq-c
];
2014-06-24 23:52:54 +02:00
configureFlags = [
2017-02-15 01:49:51 +01:00
"--enable-manpages"
2014-06-24 23:52:54 +02:00
"--enable-dynamic-linking"
"--enable-systemd"
2017-02-15 01:49:51 +01:00
"--with-ivykis=system"
"--with-librabbitmq-client=system"
"--with-mongoc=system"
"--with-jsonc=system"
"--with-systemd-journal=system"
2014-06-24 23:52:54 +02:00
"--with-systemdsystemunitdir=$(out)/etc/systemd/system"
];
2017-02-15 01:49:51 +01:00
outputs = [ "out" "man" ];
meta = with stdenv.lib; {
homepage = http://www.balabit.com/network-security/syslog-ng/;
description = "Next-generation syslogd with advanced networking and filtering capabilities";
license = licenses.gpl2;
2017-02-15 01:49:51 +01:00
maintainers = with maintainers; [ rickynils fpletz ];
platforms = platforms.linux;
};
}