From a0291726b0f2e5d3598c800e3900faba619083dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Attila=20Ol=C3=A1h?= Date: Fri, 29 May 2026 10:00:20 +0200 Subject: [PATCH] gemini-cli: 0.43.0 -> 0.44.1 - Update the ripgrep substitution added in #478302 - Add /nix/store to the `trustedPrefixes` list --- pkgs/by-name/ge/gemini-cli/package.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/ge/gemini-cli/package.nix b/pkgs/by-name/ge/gemini-cli/package.nix index b4ac203be5da..fdfe4f5c3d4c 100644 --- a/pkgs/by-name/ge/gemini-cli/package.nix +++ b/pkgs/by-name/ge/gemini-cli/package.nix @@ -15,18 +15,18 @@ buildNpmPackage (finalAttrs: { pname = "gemini-cli"; - version = "0.43.0"; + version = "0.44.1"; src = fetchFromGitHub { owner = "google-gemini"; repo = "gemini-cli"; tag = "v${finalAttrs.version}"; - hash = "sha256-UFz+CQLGbzFlpa5Mhf/frnQJWttF35URvua1QTfoaZ0="; + hash = "sha256-FizxmHWOomlnWZoCK2lOLc94RjNTQM33vN16nLXsJI0="; }; nodejs = nodejs_22; - npmDepsHash = "sha256-7Pl020NKKzRpQftzEYRpQ0v1mkPnO3kVZITvFSLYztI="; + npmDepsHash = "sha256-yn17dwHIpL3T2Z9nSOyBMehggrj4y6so7WMhnk2VwoA="; dontPatchElf = stdenv.hostPlatform.isDarwin; @@ -54,9 +54,13 @@ buildNpmPackage (finalAttrs: { # Remove node-pty dependency from packages/core/package.json ${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 - # Fix ripgrep path for SearchText; ensureRgPath() on its own may return the path to a dynamically-linked ripgrep binary without required libraries + # Prefer the Nix ripgrep binary by prepending it to candidate paths substituteInPlace packages/core/src/tools/ripGrep.ts \ - --replace-fail "await ensureRgPath();" "'${lib.getExe ripgrep}';" + --replace-fail "const candidatePaths = [" "const candidatePaths = [\"${lib.getExe ripgrep}\", " + + # Trust the Nix store path by adding it to standard system prefixes + substituteInPlace packages/core/src/utils/paths.ts \ + --replace-fail "const trustedPrefixes = [" "const trustedPrefixes = [\"/nix/store\", " # Disable auto-update by changing default values in settings schema sed -i '/enableAutoUpdate:/,/default: true/ s/default: true/default: false/' packages/cli/src/config/settingsSchema.ts