diff --git a/.changeset/nix-cli-tool-path.md b/.changeset/nix-cli-tool-path.md new file mode 100644 index 000000000..8b11be0a7 --- /dev/null +++ b/.changeset/nix-cli-tool-path.md @@ -0,0 +1,5 @@ +--- +"@moonshot-ai/kimi-code": patch +--- + +Ensure Nix-packaged CLI builds can find ripgrep and fd. diff --git a/flake.nix b/flake.nix index 0007040d6..78092b71e 100644 --- a/flake.nix +++ b/flake.nix @@ -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 ]; }; });