diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2015-10-30 09:20:26 +0100 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2015-10-30 09:21:08 +0100 |
commit | abbe5f27a992a938baf15471868854fb11f58b54 (patch) | |
tree | 4619c45e158634032f383a68c9d443477c385d9e /pkgs/applications/editors/neovim | |
parent | d52a1b3ce615abfbdb47543476289a9e31336710 (diff) |
neovim: make pynvim runnable even if not in $PATH
Diffstat (limited to 'pkgs/applications/editors/neovim')
-rw-r--r-- | pkgs/applications/editors/neovim/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/applications/editors/neovim/default.nix b/pkgs/applications/editors/neovim/default.nix index 1a8f7417d5355..252a1e93c6420 100644 --- a/pkgs/applications/editors/neovim/default.nix +++ b/pkgs/applications/editors/neovim/default.nix @@ -109,7 +109,8 @@ let '' + optionalString withPython '' ln -s ${pythonEnv}/bin/python $out/bin/nvim-python '' + optionalString withPyGUI '' - ln -s ${pythonEnv}/bin/pynvim $out/bin/pynvim + makeWrapper "${pythonEnv}/bin/pynvim" "$out/bin/pynvim" \ + --prefix PATH : "$out/bin" '' + optionalString withPython3 '' ln -s ${python3Env}/bin/python3 $out/bin/nvim-python3 '' + optionalString (withPython || withPython3) '' |