Tweag+Nix dev update #59

Esteemed Nixers,

we’re back from NixCon 2026 – it was a blast! Great to have met so many people, again or for the first time. Way too big and way too short to talk with everyone we wanted to.

@layus demonstrated how to do distributed incremental builds by marrying recursive-nix with the Bazel remote execution API, and… Well, it’s not that simple, so watch the full exposition for details: Nixception – incremental builds inside and outside the sandbox

Yours truly discussed history and liberally shared opinions on Sunday morning to wake everyone up, and was pleased to have so many attending: Why I changed my mind about flakes

Meanwhile, Tweagers back home were hacking:

@florentc: finished the migration to a snappy dynamic UI for the Nixpkgs security tracker

  • Old and new were running in parallel for a couple of weeks to give users the opportunity to try it out and report remaining issues (which were fixed)
  • We’re back to developing features again: Next steps will be to tidy up the display of packages in automatic matches, and adding a dedicated overview of packages one maintains or subscribes to.

@YorikSar: getting CUDA team’s packages built

@tshaynik: working on getting rules_nixpkgs support newer Bazel releases

  • rules_nixpkgs is a Bazel ruleset that allows bringing arbitrary tools from Nixpkgs into your Bazel build environment
    • It used to be that there was no meaningful way of doing dependency management with Bazel; you’d just put arbitrary things into your WORKSPACE file
    • There’s more things out there, but rules_nixpkgs was our approach to bringing hermetic toolchains
  • Currently updating rules_nixpkgs (various toolchains, examples, …) to recent Bazel versions, one at a time
    • The recent release v0.14.0 by @vreuter made Bazel 7 the minimum supported version and deprecated Bazel 6
    • Plan is to keep Bazel 7 and add Bazel 8, and deprecate the old WORKSPACE approach in favor of Bzlmod
  • Maybe good to know: there’s also the other direction of running Bazel builds in Nix derivations with pkgs.buildBazelPackage (currently undocumented)

Thunks for your attention! :vulcan_salute:

15 Likes

It’s great to work alongside @YorikSar. He has been helping a lot with CI/infra work!

4 Likes