Merge pull request #200097 from efx/fluent-bit-support-postgresql-out

fluent-bit: support PostgreSQL output
This commit is contained in:
Franz Pletz 2022-11-08 13:13:52 +01:00 committed by GitHub
commit bc5ad97078
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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" ]