Skip to content

Commit

Permalink
Merge pull request #200097 from efx/fluent-bit-support-postgresql-out
Browse files Browse the repository at this point in the history
fluent-bit: support PostgreSQL output
  • Loading branch information
fpletz authored Nov 8, 2022
2 parents c4756f6 + 5d3d98a commit bc5ad97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkgs/tools/misc/fluent-bit/default.nix
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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" ]
Expand Down

0 comments on commit bc5ad97

Please sign in to comment.