feat: add nix flake packaging - #150
Merged
Merged
Conversation
📝 WalkthroughWalkthroughThe pull request adds Nix packaging for the Rust CLI. It defines a Nix derivation, exposes flake outputs for building and development, and documents Nix, NixOS, and home-manager installation methods. ChangesNix packaging
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 6✅ Passed checks (6 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
greptile-apps
Bot
dismissed
their stale review
July 31, 2026 02:27
Dismissed because a newer commit was pushed; Greptile will re-review the current head.
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.
what changed
adds first-class nix packaging for kagi-cli:
flake.nixandflake.lockpackages.default,apps.default,checks.kagi,devShells.default, andoverlays.defaultrustPlatform.buildRustPackagenix runandnix profile installwhy
kagi-cli is already a good fit for nix: it is a locked Rust project that builds a standalone binary and uses rustls instead of OpenSSL. this gives NixOS and home-manager users a declarative install path without changing the existing installers or release workflow.
verification
cargo fmt --checkcargo check --workspace --all-targets --lockedcargo test --workspace --all-targets --lockednix flake checkwas not run because nix is not installed in the verification environment.implementation with Hermes, verified locally with the existing Rust toolchain.
Summary by CodeRabbit
New Features
Documentation
Greptile Summary
Adds first-class Nix flake packaging for the Rust CLI.
Confidence Score: 5/5
The PR appears safe to merge.
No blocking failure remains; the prior cross-build issue is fixed by skipping target test execution when the build platform cannot execute host-platform binaries.
Important Files Changed
Reviews (3): Last reviewed commit: "docs: add nix installation guide" | Re-trigger Greptile