// the find
mitchellh/zig-overlay
Nix flake for the Zig compiler.
A Nix flake that packages the Zig compiler — both official releases and nightly builds — by mirroring the official Zig binaries rather than building from source. It's for Zig developers on NixOS or anyone using Nix who wants to pin or switch compiler versions without touching system packages. Mitchell Hashimoto maintains it, which gives it credibility.
Historical nightly builds dating back to 2021 in a single sources.json, so you can pin to an exact date for reproducible builds. The Homebrew bottle support on macOS is a practical workaround for cases where official Zig releases break on newer macOS versions. The compiler-dev template is a genuine time-saver for anyone contributing to Zig itself — clone, init, direnv allow, done. Actively maintained with a daily update workflow and dependabot on the lock file.
Mirrors binaries instead of building from source, which means you're trusting the update automation and the official Zig CI equally — if either goes wrong you might get a gap in nightly history with no recovery path. Gaps in nightly coverage are a documented fact, not an edge case, which is a real problem if your CI depends on a specific date that happened to fall during a broken Zig CI period. No support for cross-compilation targets or alternative architectures beyond what the official Zig releases ship — if you need a musl-linked or RISC-V build, you're on your own.