neovim: provide default value for python3Env (#147241)

main
Michael Adler 3 years ago committed by GitHub
parent bc41971988
commit 137a153655
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      pkgs/applications/editors/neovim/wrapper.nix

@ -3,6 +3,7 @@
, bundlerEnv, ruby
, nodejs
, nodePackages
, python3
, python3Packages
, callPackage
}:
@ -17,7 +18,7 @@ let
, wrapperArgs ? []
, manifestRc ? null
, withPython2 ? false
, withPython3 ? true, python3Env ? null
, withPython3 ? true, python3Env ? python3
, withNodeJs ? false
, rubyEnv ? null
, vimAlias ? false
@ -59,7 +60,7 @@ let
--replace 'Name=Neovim' 'Name=WrappedNeovim'
''
+ optionalString withPython3 ''
makeWrapper ${python3Env}/bin/python3 $out/bin/nvim-python3 --unset PYTHONPATH
makeWrapper ${python3Env.interpreter} $out/bin/nvim-python3 --unset PYTHONPATH
''
+ optionalString (rubyEnv != null) ''
ln -s ${rubyEnv}/bin/neovim-ruby-host $out/bin/nvim-ruby

Loading…
Cancel
Save