mirror of
https://github.com/MoonshotAI/kimi-code.git
synced 2026-07-09 17:29:12 +00:00
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:
parent
86a42a26a1
commit
853c5fc437
2 changed files with 12 additions and 0 deletions
5
.changeset/nix-cli-tool-path.md
Normal file
5
.changeset/nix-cli-tool-path.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"@moonshot-ai/kimi-code": patch
|
||||
---
|
||||
|
||||
Ensure Nix-packaged CLI builds can find ripgrep and fd.
|
||||
|
|
@ -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
|
||||
];
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue