vectorcode: use makeWrapperArgs to prefix PYTHONPATH (#428884)

This commit is contained in:
Nick Cao
2025-07-28 15:59:30 -04:00
committed by GitHub
+6 -9
View File
@@ -160,15 +160,12 @@ python.pkgs.buildPythonApplication rec {
installShellCompletion vectorcode.{bash,zsh}
'';
postFixup = ''
wrapProgram $out/bin/vectorcode \
--prefix PYTHONPATH : "$PYTHONPATH" \
--set PATH ${
lib.makeBinPath [
python
]
};
'';
makeWrapperArgs = [
"--prefix"
"PYTHONPATH"
":"
"$PYTHONPATH"
];
pythonImportsCheck = [ "vectorcode" ];