neovim: also unset PYTHONSAFEPATH in python wrapper

This commit is contained in:
John Chadwick 2024-01-22 23:58:49 -05:00
parent f52a5610dd
commit a55b396e05

View file

@ -102,7 +102,7 @@ let
--replace 'Name=Neovim' 'Name=Neovim wrapper' --replace 'Name=Neovim' 'Name=Neovim wrapper'
'' ''
+ lib.optionalString finalAttrs.withPython3 '' + lib.optionalString finalAttrs.withPython3 ''
makeWrapper ${python3Env.interpreter} $out/bin/nvim-python3 --unset PYTHONPATH makeWrapper ${python3Env.interpreter} $out/bin/nvim-python3 --unset PYTHONPATH --unset PYTHONSAFEPATH
'' ''
+ lib.optionalString (finalAttrs.rubyEnv != null) '' + lib.optionalString (finalAttrs.rubyEnv != null) ''
ln -s ${finalAttrs.rubyEnv}/bin/neovim-ruby-host $out/bin/nvim-ruby ln -s ${finalAttrs.rubyEnv}/bin/neovim-ruby-host $out/bin/nvim-ruby