diff options
author | Rok Garbas <rok@garbas.si> | 2015-10-29 19:58:08 +0100 |
---|---|---|
committer | Rok Garbas <rok@garbas.si> | 2015-10-29 19:58:08 +0100 |
commit | b7ab0a47de57853647316cb492956ae5eaafbb21 (patch) | |
tree | d5644f37d2ece03777b93faa702683fb5423ea29 /pkgs/applications/editors/neovim/default.nix | |
parent | 24d5618d23457f7cf9f70954f5105f17ffd01a8f (diff) | |
download | nixlib-b7ab0a47de57853647316cb492956ae5eaafbb21.tar nixlib-b7ab0a47de57853647316cb492956ae5eaafbb21.tar.gz nixlib-b7ab0a47de57853647316cb492956ae5eaafbb21.tar.bz2 nixlib-b7ab0a47de57853647316cb492956ae5eaafbb21.tar.lz nixlib-b7ab0a47de57853647316cb492956ae5eaafbb21.tar.xz nixlib-b7ab0a47de57853647316cb492956ae5eaafbb21.tar.zst nixlib-b7ab0a47de57853647316cb492956ae5eaafbb21.zip |
neovim: adding python gui option
- pythonPackages.neovim_gui init
Diffstat (limited to 'pkgs/applications/editors/neovim/default.nix')
-rw-r--r-- | pkgs/applications/editors/neovim/default.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/applications/editors/neovim/default.nix b/pkgs/applications/editors/neovim/default.nix index 2e0e3a1743c5..1a8f7417d535 100644 --- a/pkgs/applications/editors/neovim/default.nix +++ b/pkgs/applications/editors/neovim/default.nix @@ -6,6 +6,7 @@ , withPython3 ? true, python3Packages, extraPython3Packages ? [] , withJemalloc ? true, jemalloc +, withPyGUI ? false , vimAlias ? false , configure ? null }: @@ -45,7 +46,11 @@ let }; pythonEnv = pythonPackages.python.buildEnv.override { - extraLibs = [ pythonPackages.neovim ] ++ extraPythonPackages; + extraLibs = ( + if withPyGUI + then [ pythonPackages.neovim_gui ] + else [ pythonPackages.neovim ] + ) ++ extraPythonPackages; ignoreCollisions = true; }; @@ -103,6 +108,8 @@ let $out/bin/nvim '' + optionalString withPython '' ln -s ${pythonEnv}/bin/python $out/bin/nvim-python + '' + optionalString withPyGUI '' + ln -s ${pythonEnv}/bin/pynvim $out/bin/pynvim '' + optionalString withPython3 '' ln -s ${python3Env}/bin/python3 $out/bin/nvim-python3 '' + optionalString (withPython || withPython3) '' |