neovim: add default-enabled waylandSupport to the wrapper (#439451)

This commit is contained in:
Sandro
2025-09-02 13:32:41 +02:00
committed by GitHub
+5 -1
View File
@@ -3,6 +3,7 @@
lib,
makeWrapper,
bundlerEnv,
wl-clipboard,
ruby,
nodejs,
writeText,
@@ -39,6 +40,7 @@ let
# the function you would have passed to python3.withPackages
extraPython3Packages ? (_: [ ]),
waylandSupport ? stdenv.hostPlatform.isLinux,
withNodeJs ? false,
withPerl ? false,
withRuby ? true,
@@ -214,6 +216,7 @@ let
inherit
viAlias
vimAlias
waylandSupport
withNodeJs
withPython3
withPerl
@@ -234,7 +237,8 @@ let
op = acc: normalizedPlugin: acc ++ normalizedPlugin.plugin.runtimeDeps or [ ];
runtimeDeps = lib.foldl' op [ ] pluginsNormalized;
in
lib.optional finalAttrs.withRuby rubyEnv
lib.optionals finalAttrs.waylandSupport [ wl-clipboard ]
++ lib.optional finalAttrs.withRuby rubyEnv
++ lib.optional finalAttrs.withNodeJs nodejs
++ lib.optionals finalAttrs.autowrapRuntimeDeps runtimeDeps;