about summary refs log tree commit diff
path: root/pkgs/applications/editors/neovim
diff options
context:
space:
mode:
authorMichael Adler <therisen06@gmail.com>2021-12-01 10:15:46 +0100
committerGitHub <noreply@github.com>2021-12-01 10:15:46 +0100
commit137a15365503782e44f33772e4562b7eb222765f (patch)
treebc8cf236c3101c353c0d09f3d7b8e3080e4646c5 /pkgs/applications/editors/neovim
parentbc419719880d6db10321b96b9693d2eaae5df29a (diff)
downloadnixlib-137a15365503782e44f33772e4562b7eb222765f.tar
nixlib-137a15365503782e44f33772e4562b7eb222765f.tar.gz
nixlib-137a15365503782e44f33772e4562b7eb222765f.tar.bz2
nixlib-137a15365503782e44f33772e4562b7eb222765f.tar.lz
nixlib-137a15365503782e44f33772e4562b7eb222765f.tar.xz
nixlib-137a15365503782e44f33772e4562b7eb222765f.tar.zst
nixlib-137a15365503782e44f33772e4562b7eb222765f.zip
neovim: provide default value for python3Env (#147241)
Diffstat (limited to 'pkgs/applications/editors/neovim')
-rw-r--r--pkgs/applications/editors/neovim/wrapper.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/applications/editors/neovim/wrapper.nix b/pkgs/applications/editors/neovim/wrapper.nix
index d94f3239f4bb..2a0d60ce5a79 100644
--- a/pkgs/applications/editors/neovim/wrapper.nix
+++ b/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