Nix and Bazel: The Odd Couple of Build Tools - Jesse Schalken, Canva

  Рет қаралды 274

The Linux Foundation

The Linux Foundation

Күн бұрын

Nix and Bazel: The Odd Couple of Build Tools - Jesse Schalken, Canva
A talk on why Nix and Bazel does not pair with each other well, recommending to use Bazel and bzlmod instead of Nix. Specifically, Nix is a package manager that is often misintegrated into Bazel. It is incompatible with the Bazel ecosystem in that * Nix artifacts are not relocatable, breaking Bazel remote execution when Nix outputs are in the build graph * Nix binaries are incompatible with FHS and rulesets that expect FHS because binaries are located in Nix store * Users who are familiar with Bazel are (usually) not familiar with Nix. Our engineers are often unable to self-serve patches to Nix packages, and they are also unable to use the testing framework provided by Bazel (which are familiar to most engineers) to validate their patches because of the steep learning curves * At monorepo our size, it is not rare to see Nix expressions that produces several thousand derivations that each reference large sets of build inputs. Expression evaluations are often so slow that nix-builds are in the critical path during analysis phase, even though outputs are already in the Nix cache. Nix flakes can help but it has an awkward git integration which does not work very well in large monorepos

Пікірлер
The best of both worlds with Nix + Bazel
24:56
Google Open Source
Рет қаралды 3,5 М.
When Cucumbers Meet PVC Pipe The Results Are Wild! 🤭
00:44
Crafty Buddy
Рет қаралды 59 МЛН
МЕНЯ УКУСИЛ ПАУК #shorts
00:23
Паша Осадчий
Рет қаралды 5 МЛН
ТЮРЕМЩИК В БОКСЕ! #shorts
00:58
HARD_MMA
Рет қаралды 2,7 МЛН
Кто круче, как думаешь?
00:44
МЯТНАЯ ФАНТА
Рет қаралды 6 МЛН
The Strange Physics Principle That Shapes Reality
32:44
Veritasium
Рет қаралды 6 МЛН
Running Generative AI & LLM on a Kubernetes Cluster | Cloud Institute
30:32
NixOS is Mindblowing
12:02
Chris Titus Tech
Рет қаралды 725 М.
How all C/C++ build Systems Work (Except for CMake and Premake)
4:53
Kea Sigma Delta
Рет қаралды 11 М.
Nix explained from the ground up
23:39
Surma
Рет қаралды 62 М.
Getting Started with Nix
25:49
OpenTechLab
Рет қаралды 74 М.
The Concept Of Monorepos
16:10
Ahmed Elsakaan
Рет қаралды 8 М.
When Cucumbers Meet PVC Pipe The Results Are Wild! 🤭
00:44
Crafty Buddy
Рет қаралды 59 МЛН