summary refs log tree commit diff
path: root/pkgs/applications/editors/neovim
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2023-07-05 19:38:58 -0400
committerfigsoda <figsoda@pm.me>2023-07-05 19:38:58 -0400
commita040c852e6959b7eeabc16d0440b907e290cbc0c (patch)
tree4318c09eef3363daeacb9e302d4d79295c8e1229 /pkgs/applications/editors/neovim
parent2473b4462700051bdd499170be05832d2801b446 (diff)
downloadnixpkgs-a040c852e6959b7eeabc16d0440b907e290cbc0c.tar
nixpkgs-a040c852e6959b7eeabc16d0440b907e290cbc0c.tar.gz
nixpkgs-a040c852e6959b7eeabc16d0440b907e290cbc0c.tar.bz2
nixpkgs-a040c852e6959b7eeabc16d0440b907e290cbc0c.tar.lz
nixpkgs-a040c852e6959b7eeabc16d0440b907e290cbc0c.tar.xz
nixpkgs-a040c852e6959b7eeabc16d0440b907e290cbc0c.tar.zst
nixpkgs-a040c852e6959b7eeabc16d0440b907e290cbc0c.zip
neovim: install the required perl modules
Diffstat (limited to 'pkgs/applications/editors/neovim')
-rw-r--r--pkgs/applications/editors/neovim/wrapper.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/applications/editors/neovim/wrapper.nix b/pkgs/applications/editors/neovim/wrapper.nix
index d302b83f44f..2352cdb82a4 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