I think
stage0 deserves a
Nobel prize in computer science.
Jeremiah Orians and the stage0
contributors made it possible to build GCC and glibc, and effectively
the software world as a result, while trusting only a 181-byte binary
program as the seed.
On i686-linux, nixpkgs builds GCC 16.2.0 from source. The one program it
does not build is below: 181 bytes that turn hex text into bytes. Point at
a byte to see its line of source.
The seed
The climb
Each stage was built by one above it. Hover a stage to preview it, click
to pin it.
bytes you trust–
bytes produced–
derivations built–
source read–
Bar width: output size, log scale. Shade: byte entropy of the
stage's largest file. Grey tick: source fetched.
GCC 16 and glibc become nixpkgs' standard environment, so every package
nixpkgs builds from source on x86 Linux descends from a hex0 seed: on
x86_64-linux, 89,093 of 89,254 packages have glibc in their build
closure. The exceptions are compilers that start from a prebuilt copy of
themselves, such as GHC, rustc, Go and the JDK.
Credits
stage0-posix and
bootstrap-seeds, by Jeremiah Orians and contributors, including Andrius Štikonas and
Noah Goldstein.
nixpkgs'
minimal-bootstrap, started by Emily Trau in
nixpkgs#227914
(May 2023) and joined to the standard environment by Aleksi Hannula in
nixpkgs#479322. Team: alejandrosame, aleksi, emilytrau, ericson2314, jk, pyrox0 and
siraben.