ADR-0004 — A Nix flake provides the toolchain; Julia from the system if recent enough
Status: accepted
Context: The repository spans Rust, Julia, Node (for the site) and native audio/GUI libraries. It should build the same on any Linux or macOS machine. Many Julia users already manage Julia with juliaup.
Decision: flake.nix provides all tools (Toolchain). Rust comes from rust-toolchain.toml through rust-overlay. The default shell uses a system Julia ≥ 1.13 (raised from 1.10 in Dec 2026, issue #11: the code needs ≥ 1.11 and the manifest is resolved with 1.13.4) and otherwise fetches nixpkgs’ julia-bin; the pure shell always uses the flake’s.
Rejected alternative: Julia always from Nix (forces a second Julia on juliaup users). No Nix, only READMEs (drift between machines).
Consequences: nix develop is the one command to get started. The pure shell is the reference for CI. Windows developers need WSL or install the tools by hand.