Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(devenv): add librdkafka runtime libs to the linux flox env (#84617)

George Munyoro370bdc8a8421
diff --git a/.flox/env/manifest.toml b/.flox/env/manifest.toml
index 4c6fe8dad5e1..d4b05bfb5401 100644
--- a/.flox/env/manifest.toml
+++ b/.flox/env/manifest.toml
@@ -20,6 +20,9 @@ nodejs = { pkg-path = "nodejs_24", pkg-group = "nodejs", version = "24.13.0" } #
corepack = { pkg-path = "corepack_24", pkg-group = "nodejs", version = "24.13.0", priority = 4 } # Same maj.min as in Dockerfile; diverges from patch ver
brotli = { pkg-path = "brotli", pkg-group = "nodejs" }
zstd = { pkg-path = "zstd", pkg-group = "nodejs" }
+# node-rdkafka's librdkafka dlopens liblz4/libsasl2 at runtime on Linux; the .so files live outside the default outputs
+lz4 = { pkg-path = "lz4", pkg-group = "nodejs", outputs = ["out", "lib", "dev"], systems = ["x86_64-linux", "aarch64-linux"] }
+cyrus_sasl = { pkg-path = "cyrus_sasl", pkg-group = "nodejs", outputs = ["out", "dev"], systems = ["x86_64-linux", "aarch64-linux"] }
openssl = { pkg-path = "openssl", version = "3.4.1", pkg-group = "openssl", outputs = ["bin", "man", "dev", "out"] }
nodemon = { pkg-path = "nodemon" }
# Rust toolchain (based on https://flox.dev/docs/cookbook/languages/rust/)