Bootstrap a modern toolchain for ZilchOS Core starting from a random trusted statically linked seed tcc (+ trusted kernel on trusted hardware, of course).
My goal is to beeline for bootstrapping Nix package manager, then bootstrap a usable toolchain using Nix. But even if you don't care about Nix, this repo might be of some interest for minimal binary seed bootstrappers.
I wanted to build a minimal distro to understand NixOS better, so I decided to have a decent trusted binary core bootstrap as well.
I'm aware of https://savannah.nongnu.org/projects/stage0 which does even better, but I'm not as hardcore as them, so, let's start small.
Then repeat stage 1 and most of stage 2 all over again, but under Nix. The final exports of this flake are musl, clang toolchain and a busybox that ZilchOS Core later bootstraps from.
If you have Nix and want to skip the first half that bootstraps Nix, you can just nix build, but what's the fun in taking shortcuts =). You'll need experimental-features = nix-command flakes ca-derivations.