Toolchain — one Nix flake, Julia from the system or from Nix
flake.nix provides everything (ADR-0004):
| Tool | Source | Why |
|---|---|---|
| Rust (rustc, cargo, clippy, rustfmt, rust-analyzer, rust-src) | rust-toolchain.toml via rust-overlay | One pin for Nix and rustup users alike |
| cargo-nextest, cargo-deny, just | nixpkgs | Tests, licence checks, task runner |
vorbis-tools (oggenc) | nixpkgs | Ogg Vorbis encoding of the demo renders (T-040) |
clap-validator 0.4.1 + fixes (master 55f0ff0) | built from source, revision pinned in flake.nix (not in nixpkgs); past 0.4.1 for its preset-discovery deadlock fix (T-019) | CLAP conformance tests on the built bundle |
| graphicle (optional) | system if installed; the flake’s build only with INSTRUMENTS_NIX_GRAPHICLE=1 | Code graph and memory for coding agents (CLI + MCP server) |
| Node 22 | nixpkgs | Quartz (site/build.sh) |
| Julia | system if ≥ 1.13, else nixpkgs julia-bin | Training |
| ALSA, JACK, X11/xcb, xkbcommon, Wayland, GL, Vulkan (Linux) | nixpkgs, also on LD_LIBRARY_PATH | Standalone audio and plugin GUIs |
Shells
nix develop— the default. Its shell hook looks for ajuliaon thePATH. If it is at least 1.13 (the minimum intraining/Project.toml, which the committedManifest.tomlis resolved for), it is used (juliaup, distro packages and manual installs keep working). Otherwise the flake’s Julia is built/fetched on first use and put on thePATH.INSTRUMENTS_NIX_JULIA=1 nix developforces the flake’s.nix develop .#pure— Julia from the flake, always: for CI and exact reproduction.nix develop .#gui-test(Linux) — adds Xvfb and Mesa’s software OpenGL from Nix (with the glvnd, EGL and driver paths set so it works outside NixOS) forscripts/gui-smoke-test.sh.nix build .#julia— just the pinned Julia.nix build .#graphicle/nix run .#graphicle— just Graphicle.direnv allow(.envrcholdsuse flake) loads the default shell oncd.scripts/nix-develop-git.sh [args]— the same asnix develop [args]where GitHub’s API and archive downloads are blocked butgit cloneworks (Claude Code cloud sessions): it overrides everygithub:input withgit+httpsat its locked revision, without changingflake.lock.
What is pinned where
| What | Pin |
|---|---|
| nixpkgs, rust-overlay | flake.lock (nix flake update to move) |
| clap-validator | release tag in the clap-validator input of flake.nix; its git dependencies (clack) via allowBuiltinFetchGit at the revisions in its Cargo.lock |
| Graphicle | release tag in the graphicle input of flake.nix (change the tag, then nix flake update graphicle) |
| Rust | rust-toolchain.toml |
| Julia packages | training/Manifest.toml |
| Quartz | QUARTZ_REF in site/build.sh |
| npm packages for Quartz | Quartz’s package-lock.json at that ref |
Graphicle
Graphicle indexes the repository into a code graph (tree-sitter, no model) and serves it with the vault’s notes to coding agents over MCP. It is optional. A graphicle already on the PATH is used as it is. INSTRUMENTS_NIX_GRAPHICLE=1 nix develop puts the flake’s pinned build on the PATH instead (compiled from source, ~20 min the first time, then cached; its update check is turned off). Without either, the shell says so and carries on. Connecting it is a per-machine step:
graphicle setupbuilds the graph, registers the MCP server with the agents it finds (Claude Code, Codex, Cursor, …) and installs Git hooks that keep the graph current. It lists and backs up every file it changes;graphicle disconnectundoes it.graphicle ask "…"queries from the terminal.