~/talk

Nix and Bazel: The Odd Couple of Build Tools

Talkat BazelCon 2024 · 2024-10-14..10-15· [devops-and-delivery]
links:none on file
slides:none on file

Argument: Nix artifacts are not relocatable so binaries live in Nix store with embedded interpreter and DT_RPATHs, which breaks Bazel remote execution, container images and tarball distribution (example: waf2 compress fails with no such file or directory when RBE runs it). Nix evaluation is slow at scale and often re-evaluates thousands of derivations, blocking analysis. Teams cannot easily patch Nix packages or use Bazel tests. Solution adopted is Bazel + bzlmod or wrapping third‑party builds in Bazel, trading Nix convenience for a single, reliable execution model.

AI-written summary · about

  1. 0:00Nix and Bazel intro
  2. 1:03Runtime dependency paths
  3. 3:11Nix deps remote failure
  4. 4:55Fixing Nix integration issues
  5. 6:01Bazel without Nix
  6. 7:07Nix evaluation slowdowns
  7. 8:09Docker with Nix deps
  8. 9:11Wrapping Bazel with Nix
  9. 9:53Nix vs Bazel verdict
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.