Unverified Commit bc5ad970 authored by Franz Pletz's avatar Franz Pletz Committed by GitHub
Browse files

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

fluent-bit: support PostgreSQL output
parents c4756f61 5d3d98a1
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
{ 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" ]