From a040c852e6959b7eeabc16d0440b907e290cbc0c Mon Sep 17 00:00:00 2001 From: figsoda Date: Wed, 5 Jul 2023 19:38:58 -0400 Subject: [PATCH] neovim: install the required perl modules --- pkgs/applications/editors/neovim/wrapper.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/editors/neovim/wrapper.nix b/pkgs/applications/editors/neovim/wrapper.nix index d302b83f44f0..2352cdb82a44 100644 --- a/pkgs/applications/editors/neovim/wrapper.nix +++ b/pkgs/applications/editors/neovim/wrapper.nix @@ -69,6 +69,8 @@ let ++ lib.optionals wrapRc [ "--add-flags" "-u ${writeText "init.vim" neovimRcContent}" ] ++ commonWrapperArgs ; + + perlEnv = perl.withPackages (p: [ p.NeovimExt p.Appcpanminus ]); in assert withPython2 -> throw "Python2 support has been removed from the neovim wrapper, please remove withPython2 and python2Env."; @@ -91,7 +93,7 @@ let ln -s ${nodePackages.neovim}/bin/neovim-node-host $out/bin/nvim-node '' + lib.optionalString withPerl '' - ln -s ${perl}/bin/perl $out/bin/nvim-perl + ln -s ${perlEnv}/bin/perl $out/bin/nvim-perl '' + lib.optionalString vimAlias '' ln -s $out/bin/nvim $out/bin/vim