syslogng: add option to enable grpc module

This adds a package option to build with the grpc module.

This module is required for some outputs, like the loki output, and
other grpc related modules.
This commit is contained in:
Cobalt
2024-09-10 18:43:27 +02:00
parent 1c299233a4
commit e2ff45f9b3

View File

@@ -33,6 +33,9 @@
, libesmtp
, rdkafka
, gperf
, withGrpc ? true
, grpc
, protobuf
}:
let
python-deps = ps: with ps; [
@@ -94,7 +97,7 @@ stdenv.mkDerivation (finalAttrs: {
paho-mqtt-c
hiredis
rdkafka
];
] ++ (lib.optionals withGrpc [ protobuf grpc ]);
configureFlags = [
"--enable-manpages"
@@ -111,7 +114,7 @@ stdenv.mkDerivation (finalAttrs: {
"--with-systemd-journal=system"
"--with-systemdsystemunitdir=$(out)/etc/systemd/system"
"--without-compile-date"
];
] ++ (lib.optionals withGrpc [ "--enable-grpc" ]);
outputs = [ "out" "man" ];