from 181 bytes

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.
— Farid Zakaria

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