Loading pkgs/by-name/fl/fluent-bit/package.nix +12 −23 Original line number Diff line number Diff line { 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. Loading @@ -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; Loading @@ -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 Loading
pkgs/by-name/fl/fluent-bit/package.nix +12 −23 Original line number Diff line number Diff line { 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. Loading @@ -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; Loading @@ -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