Add a Nix flake - #1
Open
hhornbacher wants to merge 1 commit into
Open
Conversation
- build with rustPlatform.buildRustPackage using the vendored Cargo.lock - wrap the binary so jj and wezterm are on PATH at runtime; claude still comes from the interactive session (spawned inside a wezterm pane) - skip the jj-dependent test suite in the sandboxed build - expose packages.default, apps.default, and a dev shell with the rust toolchain + jj + wezterm - read name and version from Cargo.toml - document nix usage in the README
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.
Adds a
flake.nixso faff can be built, run, and installed with Nix.nix run github:Jezza/faff/nix profile install github:Jezza/faffnix developgives a dev shell with the Rust toolchain plusjjandweztermjjandweztermare onPATHat runtime.claudeis intentionally not wrapped in — faff spawns it viawezterm cli spawn -- claude, so it resolves from your interactive shell inside the pane.rustPlatform.buildRustPackageusing the committedCargo.lock;rusqlite's bundled SQLite compiles with the stdenv C compiler.doCheckis off: the test suite shells out to a realjj, which isn't available in the Nix build sandbox.Cargo.toml.I've been running this to install faff on my NixOS laptop. Happy to adjust anything (e.g. drop the
flake-utilsdependency, or pin nixpkgs to a release instead of unstable) to match your preferences.