Back to all stories
Lobstersseen ×4

beer.drv.drv.drv(fzakaria.com)

The article discusses dynamic derivations, an experimental feature in Nix that allows a derivation to produce other derivations as its output, enabling dynamic creation of the build graph. This feature aims to match the build speed of other systems like Bazel or buck2. The author explores the possibility of querying the deriver of a dynamic derivation to obtain the initial derivation, and while it usually works, there is a specific case where it fails if `__contentAddressed` is set to `true` on the producer, resulting in an "unknown-deriver" error. The article provides insight into the functionality and limitations of dynamic derivations in Nix.