Simplify Nix flake configuration - #118
Closed
pranc1ngpegasus wants to merge 7 commits into
Closed
Conversation
pranc1ngpegasus
force-pushed
the
feat/simplify-nix-flake
branch
from
August 2, 2026 16:06
baa477a to
aecafe6
Compare
pranc1ngpegasus
force-pushed
the
feat/simplify-nix-flake
branch
from
August 2, 2026 16:07
aecafe6 to
ba27bd6
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.
Summary
rust-flaketreefmt-nixfor Nix, Swift, and TOMLHOMEWhy
The previous flake duplicated package and check wiring across local Nix modules. Moving that setup to
rust-flakeandtreefmt-nixmakes the flake smaller and lets checks and package outputs follow the Cargo workspace automatically.The generated macOS Clippy derivations also exposed two SwiftPM integration problems: WispAudioKit sources were filtered out of the Nix source, and SwiftPM attempted to use an unavailable tool or create a nested macOS sandbox. This change explicitly carries the Swift package into the source and gives SwiftPM a writable, sandbox-compatible environment.
Impact
Developers get generated per-crate package, documentation, and Clippy outputs plus a unified formatter check. Swift source formatting changes in this PR are formatter-only.
Validation
cargo fmt --all -- --checknix build .#checks.aarch64-darwin.wisp-audiokit-sys-clippy --print-build-logsnix build .#checks.aarch64-darwin.wisp-audiokit-clippy --print-build-logschecks.aarch64-darwin.treefmtchecks.aarch64-darwin.wisp-core-clippychecks.aarch64-darwin.wisp-lifecycle-clippychecks.aarch64-darwin.wisp-mcp-clippyA complete local
nix flake checkreacheswisp-desktopbut cannot compile GPUI's Metal shaders because this machine only has Command Line Tools and no Metal Toolchain. The CI macOS environment is expected to provide Metal.