fluent-bit: support PostgreSQL output

This commit is contained in:
Eli Flanagan 2022-11-07 17:01:46 -05:00
parent fc9eb96278
commit 5d3d98a186
No known key found for this signature in database
GPG Key ID: 89A9465A259119BF

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, cmake, flex, bison, systemd, openssl, libyaml }:
{ lib, stdenv, fetchFromGitHub, cmake, flex, bison, systemd, postgresql, openssl, libyaml }:
stdenv.mkDerivation rec {
pname = "fluent-bit";
@ -13,10 +13,10 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake flex bison ];
buildInputs = [ openssl libyaml ]
buildInputs = [ openssl libyaml postgresql ]
++ lib.optionals stdenv.isLinux [ systemd ];
cmakeFlags = [ "-DFLB_METRICS=ON" "-DFLB_HTTP_SERVER=ON" ];
cmakeFlags = [ "-DFLB_METRICS=ON" "-DFLB_HTTP_SERVER=ON" "-DFLB_OUT_PGSQL=ON" ];
# _FORTIFY_SOURCE requires compiling with optimization (-O)
NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isGNU [ "-O" ]