gemini-cli: remove python dependency (#472079)
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
clang_20,
|
||||
libsecret,
|
||||
ripgrep,
|
||||
nodejs,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
@@ -59,14 +60,18 @@ buildNpmPackage (finalAttrs: {
|
||||
--replace-fail "settings.merged.general?.disableUpdateNag" "(settings.merged.general?.disableUpdateNag ?? true)"
|
||||
'';
|
||||
|
||||
# Prevent npmDeps from getting into the closure
|
||||
disallowedReferences = [ finalAttrs.npmDeps ];
|
||||
# Prevent npmDeps and python from getting into the closure
|
||||
disallowedReferences = [
|
||||
finalAttrs.npmDeps
|
||||
nodejs.python
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/{bin,share/gemini-cli}
|
||||
|
||||
npm prune --omit=dev
|
||||
rm node_modules/shell-quote/print.py # remove python demo to prevent python from getting into the closure
|
||||
cp -r node_modules $out/share/gemini-cli/
|
||||
|
||||
rm -f $out/share/gemini-cli/node_modules/@google/gemini-cli
|
||||
|
||||
Reference in New Issue
Block a user