From 90a786765eb0af37303972e5f24448a70aaaed15 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 2 Sep 2025 09:56:16 +0200 Subject: [PATCH] neovim: add default-enabled waylandSupport to the wrapper --- pkgs/applications/editors/neovim/wrapper.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/editors/neovim/wrapper.nix b/pkgs/applications/editors/neovim/wrapper.nix index 9bcf6b8458c7..9708aa4dfd11 100644 --- a/pkgs/applications/editors/neovim/wrapper.nix +++ b/pkgs/applications/editors/neovim/wrapper.nix @@ -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;