gemini-cli: 0.4.1 -> 0.5.3
This commit is contained in:
@@ -11,16 +11,16 @@
|
||||
|
||||
buildNpmPackage (finalAttrs: {
|
||||
pname = "gemini-cli";
|
||||
version = "0.4.1";
|
||||
version = "0.5.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "google-gemini";
|
||||
repo = "gemini-cli";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-SyYergPmEyIcDyU0tF20pvu1qOCRfMRozh0/9nnaefU=";
|
||||
hash = "sha256-fs/69CmnDtCrPAv/wxORGyigNdQQw/R7gv9D47hhfnM=";
|
||||
};
|
||||
|
||||
npmDepsHash = "sha256-4S1wMl1agTYOwJ8S/CsXHG+JRx40Nee23TmoJyTYoII=";
|
||||
npmDepsHash = "sha256-JWP5eM+e6YVOIYIU43iSTuPxmYf8Sgho1VT9GzGoJrU=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
jq
|
||||
@@ -39,20 +39,10 @@ buildNpmPackage (finalAttrs: {
|
||||
|
||||
postPatch = ''
|
||||
# Remove node-pty dependency from package.json
|
||||
jq 'del(.optionalDependencies."node-pty")' package.json > package.json.tmp && mv package.json.tmp package.json
|
||||
${jq}/bin/jq 'del(.optionalDependencies."node-pty")' package.json > package.json.tmp && mv package.json.tmp package.json
|
||||
|
||||
# Remove node-pty dependency from packages/core/package.json
|
||||
jq 'del(.optionalDependencies."node-pty")' packages/core/package.json > packages/core/package.json.tmp && mv packages/core/package.json.tmp packages/core/package.json
|
||||
|
||||
# Remove @lvce-editor/ripgrep dependency from package.json
|
||||
substituteInPlace package.json --replace-fail '"@lvce-editor/ripgrep": "^1.6.0",' ""
|
||||
|
||||
# Remove @lvce-editor/ripgrep dependency from packages/core/package.json
|
||||
substituteInPlace packages/core/package.json --replace-fail '"@lvce-editor/ripgrep": "^1.6.0",' ""
|
||||
|
||||
# Modify ripGrep.ts to use system ripgrep instead of @lvce-editor/ripgrep
|
||||
substituteInPlace packages/core/src/tools/ripGrep.ts \
|
||||
--replace-fail "import { rgPath } from '@lvce-editor/ripgrep';" "const rgPath = 'rg';"
|
||||
${jq}/bin/jq 'del(.optionalDependencies."node-pty")' packages/core/package.json > packages/core/package.json.tmp && mv packages/core/package.json.tmp packages/core/package.json
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
|
||||
Reference in New Issue
Block a user