Skip to content
DerivationBuilder, extracting Nix's sandboxing logic for library use (nixcon2025) episode artwork

Sep 6, 2025 20 min

DerivationBuilder, extracting Nix's sandboxing logic for library use (nixcon2025)

from Chaos Computer Club - archive feed Hosted by John Ericson

The most subtle part of Nix's store layer is the exact logic used to sandbox derivations. Mess up the daemon protocol, Local Store SQLite usage, drv file parsing, or other such things, and things should blow up immediately. Fail Fast helps a lot! Mess up the sandboxing logic, however, and you might not notice for a while until you try to build just the right sort of derivation. For most of Nix's history, the sandboxing logic has been embedded within the build scheduling logic (which builds or downloades dependencies) thus entangling it with hefty other machinery that makes all sorts of assumption about how IO, concurrency, etc. should work. In other words, it was not written in a way that made it easy to use from any other program but Nix itself. In the last few months, however, we've finally untangled it and moved it into its own component, and then reworked it to give it a simple interface for FFI. In this talk, we'll briefly go over that work, and then demonstrate its use a simple example executable written in a friendlier language than C++. about this event: https://talks.nixcon.org/nixcon-2025/talk/ZAHLMN/

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

DerivationBuilder, extracting Nix's sandboxing logic for library use (nixcon2025)

0:00 20:11

No transcript yet.

Requests help us decide what to transcribe next.

Frequently asked questions

How long is this episode of Chaos Computer Club - archive feed?

This episode is 20 minutes long.

When was this Chaos Computer Club - archive feed episode published?

This episode was published on September 6, 2025.

Can I download this Chaos Computer Club - archive feed episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.