Skip to content

Commit 4348aa9

Browse files
GaetanLepageMattSturgeon
authored andcommitted
tests/modules/clipboard: do not enable wl-copy on non-linux platforms
1 parent 134963b commit 4348aa9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test-sources/modules/clipboard.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{ pkgs, ... }:
12
{
23
example-with-str = {
34
clipboard = {
@@ -21,7 +22,9 @@
2122
example-with-raw-lua = {
2223
clipboard = {
2324
register.__raw = ''vim.env.SSH_TTY and "" or "unnamedplus"'';
24-
providers.wl-copy.enable = true;
25+
26+
# wl-copy is only available on linux
27+
providers.wl-copy.enable = pkgs.stdenv.hostPlatform.isLinux;
2528
};
2629
};
2730
}

0 commit comments

Comments
 (0)