Repository navigation
build: replace flake.nix with a Kai 0.0.11 Kaifile - #131
Draft
thebrandonlucas wants to merge 1 commit into
Draft
thebrandonlucas wants to merge 1 commit into
thebrandonlucas wants to merge 1 commit into
Conversation
thebrandonlucas
changed the base branch from
master
to
brandon/dev-2953-voltage-cli-add-environments-create
November 4, 2026 18:33
This was referenced Nov 4, 2026
thebrandonlucas
force-pushed
the
kaifile-replace-flake
branch
2 times, most recently
from
November 5, 2026 15:04
20fa739 to
34b29ce
Compare
thebrandonlucas
marked this pull request as ready for review
November 5, 2026 15:07
thebrandonlucas
force-pushed
the
kaifile-replace-flake
branch
from
November 5, 2026 15:09
34b29ce to
7d1b80f
Compare
thebrandonlucas
marked this pull request as draft
November 5, 2026 15:20
thebrandonlucas
force-pushed
the
kaifile-replace-flake
branch
from
November 5, 2026 15:27
7d1b80f to
e4b5760
Compare
The Kai shell matches the flake's: the toolchain from rust-toolchain.toml plus llvm-tools-preview, Python 3 and cargo-machete, and on entry it builds voltage and puts target/debug on PATH. .kai/lock.json pins nixpkgs and rust-overlay. The Kaifile declares x86_64 and aarch64 Linux and Apple Silicon macOS. Kai 0.0.11 ships for Linux only, so macOS developers keep using rustup until a macOS release exists.
thebrandonlucas
force-pushed
the
kaifile-replace-flake
branch
from
November 5, 2026 18:07
e4b5760 to
bbc165d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces
flake.nix/flake.lockwith aKaifile.rocon Kai 0.0.11 and a committed.kai/lock.json. The Kai shell matches the flake's:rust-toolchain.tomlthrough rust-overlay, plusllvm-tools-previewfor the CRAP report (RustToolchainWith, new in 0.0.11).cargo-macheteare added.cargo build --lockedand putstarget/debugonPATH. The flake's shellHook does the same; the Kaifile sets it withRaw("nix", "shell:default", ...)..envrc,.gitignore,AGENTS.md(the friction-logrepro.sh),docs/development.mdanddocs/quality.mdare updated to match.This PR is stacked on
brandon/dev-2953-voltage-cli-add-environments-create.Gaps against the flake
docs/development.mdsends macOS developers to rustup until a release exists. Intel macOS is not declared.nixpkgsfollows Kai's defaultnixos-unstablenixos-26.05to keep Intel macOS, which Kai does not support.Verified
In a
nixos/nixaarch64-linux container with Kai 0.0.11 (release tarball, checked againstSHA256SUMS):kai check:Kaifile.roc is validkai updatecreated.kai/lock.json(nixpkgs1d060086, rust-overlay19e0e6c9)kai shell default -- ...:rustc 1.98.1,cargo-machete 0.9.2,Python 3.14.8,llvm-toolsbinaries in the sysroot, andvoltage 0.2.0fromtarget/debugonPATHcargo fmt --check,clippy -D warnings,cargo machete,cargo test --locked(221 + 166 passed) andscripts/check-coverage.pyall passOn Apple Silicon macOS, with Kai 0.0.11 built from source as Kai's nightly CI builds it:
kai checkpasses,kai updatereports no input changed (declaring macOS leaves the lock as it is), and the shell and the full gate pass (rustc foraarch64-apple-darwin).nix run/nix shell github:thebrandonlucas/kai/v0.0.11both print0.0.11on aarch64-linux, asdocs/development.mdinstructs.These checks ran on this PR's tree: the one commit on top of
brandon/dev-2953-voltage-cli-add-environments-createat1748a5d. x86_64-linux was not run. This PR changes no Rust source, so the CRAP report was not rerun.Note: in Docker Desktop containers, Roc fails to download the platform and std bundles (
DownloadFailed). The cause is a last line of/etc/resolv.confthat holds only a space. Rewrite that file to itsnameserverline, or put the bundles in~/.cache/roc/packages/<hash>/by hand.Try it
On this branch, on Linux with Nix (flakes enabled):
Expect:
Kaifile.roc is valid;rustc 1.98.1; then the developmentvoltagebuilt from this checkout.