# Nix's build graph now rolls dice: dynamic derivations make builds monadic

Original title: A build graph that rolls dice

> Hacker News story 49786643 · language: en · submitted 2026-09-21
> Web version: https://zeli.app/story/49786643
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 17 · by [ingve](<https://news.ycombinator.com/user?id=ingve>) · 💬 2
[original](<https://fzakaria.com/2026/09/20/a-build-graph-that-rolls-dice>) · [HN discussion](<https://news.ycombinator.com/item?id=49786643>)

## Summary

Dynamic derivations turn Nix from an applicative build system—where the entire graph is known up front—into a monadic one where each step can depend on the result of the previous. The author demonstrates with a chain that rolls a die and either stops or continues, showing the graph growing during the build. He argues this primitive goes far beyond lang2nix tools, enabling search, crawling, and emulation with no depth limit.

## Key quote

> The bind was always there. What changes is which layer performs it.

---

## Cite

- Page: https://zeli.app/story/49786643
- Date: 2026-09-21
- Source: fzakaria.com (https://fzakaria.com/2026/09/20/a-build-graph-that-rolls-dice)
- Hacker News: https://news.ycombinator.com/item?id=49786643

## Other languages

- zh: https://zeli.app/zh/story/49786643 · markdown: https://zeli.app/zh/story/49786643.md
- ja: https://zeli.app/ja/story/49786643 · markdown: https://zeli.app/ja/story/49786643.md
- ko: https://zeli.app/ko/story/49786643 · markdown: https://zeli.app/ko/story/49786643.md
- de: https://zeli.app/de/story/49786643 · markdown: https://zeli.app/de/story/49786643.md
- es: https://zeli.app/es/story/49786643 · markdown: https://zeli.app/es/story/49786643.md
- ru: https://zeli.app/ru/story/49786643 · markdown: https://zeli.app/ru/story/49786643.md
