From 44569a6083de0ca93834e7b04d10fdc7762256d6 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 8 Jul 2025 17:48:22 +0200 Subject: [PATCH] tests/modules/clipboard: do not enable wl-copy on non-linux platforms --- tests/test-sources/modules/clipboard.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test-sources/modules/clipboard.nix b/tests/test-sources/modules/clipboard.nix index 83c253a5..fe2bbfa8 100644 --- a/tests/test-sources/modules/clipboard.nix +++ b/tests/test-sources/modules/clipboard.nix @@ -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; }; }; }