mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
[Backport release-25.05] fluent-bit: 3.2.6 -> 4.0.3 (#413533)
This commit is contained in:
commit
aca183f3c5
1 changed files with 12 additions and 23 deletions
|
@ -1,41 +1,41 @@
|
|||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
nixosTests,
|
||||
|
||||
arrow-glib,
|
||||
bison,
|
||||
c-ares,
|
||||
cmake,
|
||||
curl,
|
||||
fetchFromGitHub,
|
||||
flex,
|
||||
jemalloc,
|
||||
libbacktrace,
|
||||
libbpf,
|
||||
libnghttp2,
|
||||
libpq,
|
||||
libyaml,
|
||||
luajit,
|
||||
msgpack-c,
|
||||
nghttp2,
|
||||
nix-update-script,
|
||||
nixosTests,
|
||||
openssl,
|
||||
pkg-config,
|
||||
rdkafka,
|
||||
sqlite,
|
||||
systemd,
|
||||
versionCheckHook,
|
||||
zlib,
|
||||
zstd,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "fluent-bit";
|
||||
# FIXME: We are deliberately on 3.2.6 as 3.2.7 and above are causing segfaults (https://github.com/fluent/fluent-bit/issues/10139)
|
||||
version = "3.2.6";
|
||||
version = "4.0.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "fluent";
|
||||
repo = "fluent-bit";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-S0sb954n17z+zrVNkYd6yiV01aNbOLJLOV+34PRkSXQ=";
|
||||
hash = "sha256-hxlvidzrEE/5xzka414CerGQ/Vi2jXUnNvO/oSxrHQQ=";
|
||||
};
|
||||
|
||||
# The source build documentation covers some dependencies and CMake options.
|
||||
|
@ -49,15 +49,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
# Fortunately, there's the undocumented `FLB_PREFER_SYSTEM_LIBS` CMake option to link against system libraries for
|
||||
# some dependencies.
|
||||
#
|
||||
# See https://github.com/fluent/fluent-bit/blob/v3.2.6/CMakeLists.txt#L211-L218.
|
||||
#
|
||||
# Like `FLB_PREFER_SYSTEM_LIBS`, several CMake options aren't documented.
|
||||
#
|
||||
# See https://github.com/fluent/fluent-bit/blob/v3.2.6/CMakeLists.txt#L111-L157.
|
||||
#
|
||||
# The CMake options may differ across target platforms. We'll stick to the minimum.
|
||||
#
|
||||
# See https://github.com/fluent/fluent-bit/tree/v3.2.6/packaging/distros.
|
||||
# https://github.com/fluent/fluent-bit/blob/v4.0.2/CMakeLists.txt#L245
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
|
@ -72,19 +64,16 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
[
|
||||
arrow-glib
|
||||
c-ares
|
||||
# Needed by rdkafka.
|
||||
curl
|
||||
jemalloc
|
||||
libbacktrace
|
||||
libnghttp2
|
||||
libpq
|
||||
libyaml
|
||||
luajit
|
||||
msgpack-c
|
||||
nghttp2.dev
|
||||
openssl
|
||||
rdkafka
|
||||
# Needed by rdkafka.
|
||||
zlib
|
||||
# Needed by rdkafka.
|
||||
sqlite.dev
|
||||
zstd
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isLinux [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue