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

4.4 Exercise: package mini-hello with builtins.derivation

Lesson 25 of 27 · 12:08

placeholder thumbnail

Sign in to watch this lesson

About this lesson

Hands-on: write a builder shell script, fill $out, declare coreutils, gcc, and gnumake as inputs, inspect the resulting .drv, and install your creation with nix profile install. This is the exercise that crystallises everything you just watched.