tests/modules/clipboard: do not enable wl-copy on non-linux platforms

This commit is contained in:
Gaetan Lepage 2025-07-08 17:48:22 +02:00
parent 68646d386a
commit 44569a6083

View file

@ -1,3 +1,4 @@
{ pkgs, ... }:
{
example-with-str = {
clipboard = {
@ -21,7 +22,9 @@
example-with-raw-lua = {
clipboard = {
register.__raw = ''vim.env.SSH_TTY and "" or "unnamedplus"'';
providers.wl-copy.enable = true;
# wl-copy is only available on linux
providers.wl-copy.enable = pkgs.stdenv.hostPlatform.isLinux;
};
};
}