fix(nix): expose ripgrep and fd to wrapped kimi (#428)

* fix(nix): expose ripgrep and fd to wrapped kimi

- make wrapper available to the Nix build
- wrap kimi binary with ripgrep and fd on PATH
- include rg and fd in the dev shell packages

* chore(nix): add changeset for ripgrep and fd
This commit is contained in:
Haozhe 2026-06-04 19:45:45 +08:00 committed by GitHub
parent 86a42a26a1
commit 853c5fc437
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
"@moonshot-ai/kimi-code": patch
---
Ensure Nix-packaged CLI builds can find ripgrep and fd.

View file

@ -147,6 +147,7 @@
nodejs
pnpm
(pkgs.pnpmConfigHook.override { inherit pnpm; })
pkgs.makeWrapper
]
# The SEA inject step (postject) invalidates the macOS code
# signature on the copied Node executable; build.mjs then re-applies
@ -190,6 +191,10 @@
runHook postInstall
'';
postInstall = ''
wrapProgram $out/bin/kimi --prefix PATH : ${lib.makeBinPath [ pkgs.ripgrep pkgs.fd ]}
'';
meta = {
description = "Kimi Code CLI";
homepage = "https://github.com/MoonshotAI/kimi-code";
@ -223,6 +228,8 @@
packages = [
nodejs
pnpm
pkgs.ripgrep
pkgs.fd
];
};
});