vectorcode: use makeWrapperArgs to prefix PYTHONPATH

This commit is contained in:
Maxime Brunet
2025-07-27 13:49:49 -03:00
parent f94d02af65
commit a34f00feb1
+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" ];