nixpkgs/pkgs/by-name/sy/syslogng/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

131 lines
2.4 KiB
Nix
Raw Normal View History

2023-09-27 17:29:20 +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
, python3Packages
2023-09-27 17:29:20 +00:00
, libnet
, json_c
, libuuid
, libivykis
, libxslt
, docbook_xsl
, pcre2
, mongoc
, rabbitmq-c
2018-03-22 18:54:22 +00:00
, libesmtp
2023-09-27 17:29:20 +00:00
, rdkafka
2024-01-26 21:58:35 +00:00
, gperf
, withGrpc ? true
, grpc
, protobuf
2018-03-22 18:54:22 +00:00
}:
2023-09-27 17:29:20 +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-10-18 15:48:27 +00:00
py = python3.withPackages python-deps;
2023-09-27 17:29:20 +00:00
in
stdenv.mkDerivation (finalAttrs: {
pname = "syslog-ng";
2024-10-04 01:38:50 +00:00
version = "4.8.1";
2023-09-27 17:29:20 +00:00
src = fetchFromGitHub {
owner = "syslog-ng";
repo = "syslog-ng";
rev = "syslog-ng-${finalAttrs.version}";
2024-10-04 01:38:50 +00:00
hash = "sha256-YdGbDpGMC0DPuPSbfe9HvZshBVdv1s1+hiHDnhYbs6Q=";
2023-11-24 17:20:14 +00:00
fetchSubmodules = true;
};
nativeBuildInputs = [ autoreconfHook autoconf-archive pkg-config which bison flex libxslt perl gperf python3Packages.setuptools ];
2017-02-15 00:49:51 +00:00
buildInputs = [
2017-02-15 00:49:51 +00:00
libcap
curl
openssl
eventlog
glib
2023-10-18 15:48:27 +00:00
py
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
2023-09-27 17:29:20 +00:00
pcre2
paho-mqtt-c
hiredis
rdkafka
] ++ (lib.optionals withGrpc [ protobuf grpc ]);
2014-06-24 21:52:54 +00:00
configureFlags = [
2017-02-15 00:49:51 +00:00
"--enable-manpages"
2023-09-27 17:29:20 +00:00
"--with-docbook=${docbook_xsl}/xml/xsl/docbook/manpages/docbook.xsl"
2014-06-24 21:52:54 +00:00
"--enable-dynamic-linking"
"--enable-systemd"
2018-03-22 18:54:22 +00:00
"--enable-smtp"
2023-10-18 15:48:27 +00:00
"--with-python-packages=none"
2023-09-27 17:29:20 +00:00
"--with-hiredis=system"
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"
2022-09-23 06:50:24 +00:00
"--without-compile-date"
] ++ (lib.optionals withGrpc [ "--enable-grpc" ]);
2017-02-15 00:49:51 +00:00
outputs = [ "out" "man" ];
2018-09-25 11:53:18 +00:00
enableParallelBuilding = true;
meta = {
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 = with lib.licenses; [ gpl2Plus lgpl21Plus ];
maintainers = with lib.maintainers; [ vifino ];
platforms = lib.platforms.linux;
};
})