Skip to content

feat: add nix support#527

Merged
stdrc merged 3 commits intoMoonshotAI:mainfrom
xiaoxiangmoe:nix
Dec 25, 2025
Merged

feat: add nix support#527
stdrc merged 3 commits intoMoonshotAI:mainfrom
xiaoxiangmoe:nix

Conversation

@xiaoxiangmoe
Copy link
Copy Markdown
Contributor

@xiaoxiangmoe xiaoxiangmoe commented Dec 24, 2025

Add nix support for kimi-cli

# Run without install
nix run github:MoonshotAI/kimi-cli
# Install
nix profile add github:MoonshotAI/kimi-cli

Copilot AI review requested due to automatic review settings December 24, 2025 16:14
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds comprehensive Nix support to kimi-cli, enabling users to install and run the application using the Nix package manager. The implementation uses modern Nix flakes with pyproject-nix tooling for Python package management.

Key Changes:

  • Adds Nix flake configuration with multi-platform support (Linux and macOS on both x86_64 and aarch64)
  • Patches the application to use Nix-provided ripgrep instead of dynamic resolution
  • Updates documentation with Nix installation and usage instructions

Reviewed changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated 2 comments.

File Description
flake.nix Defines the Nix package including Python dependencies, build overrides for ripgrepy/kimi-cli, and metadata
flake.lock Lock file specifying exact versions of Nix dependencies (nixpkgs, pyproject-nix, uv2nix, build-system-pkgs)
README.md Adds Nix installation section with instructions for running without install and permanent installation
.gitignore Adds Nix build artifacts (result, result-*) to ignored files

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@xiaoxiangmoe xiaoxiangmoe force-pushed the nix branch 10 times, most recently from 5c6c8f4 to dd5f5da Compare December 25, 2025 09:53
Signed-off-by: Richard Chien <stdrc@outlook.com>
@stdrc stdrc merged commit 36aa9b3 into MoonshotAI:main Dec 25, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants