Nix 101 Course / Section 4: How Nix actually builds: sandbox → derivation → hash → store
Premium

4.3 The derivation is just a recipe

Lesson 24 of 27 · 8:46

placeholder thumbnail

Sign in to watch this lesson

About this lesson

We run nix derivation show on a derivation written by hand with builtins.derivation and find… no magic at all: a list of store paths to provide, environment variables, a builder, and args — mapping 1:1 onto the execve(2) system call. Every Nix abstraction you'll meet later is sugar on top of this.