Skip to content

Commit eeec7f7

Browse files
committed
tests/plugins/clipboard-image: set platform-specific clipboardPackage
1 parent 4348aa9 commit eeec7f7

File tree

1 file changed

+8
-2
lines changed
  • tests/test-sources/plugins/by-name/clipboard-image

1 file changed

+8
-2
lines changed

tests/test-sources/plugins/by-name/clipboard-image/default.nix

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
{ pkgs, ... }:
1+
{ pkgs, lib, ... }:
2+
let
3+
inherit (pkgs.stdenv) hostPlatform;
4+
in
25
{
36
empty = {
47
plugins.clipboard-image = {
@@ -11,7 +14,10 @@
1114
plugins.clipboard-image = {
1215
enable = true;
1316

14-
clipboardPackage = pkgs.wl-clipboard;
17+
clipboardPackage = lib.mkMerge [
18+
(lib.mkIf hostPlatform.isLinux pkgs.wl-clipboard)
19+
(lib.mkIf hostPlatform.isDarwin pkgs.pngpaste)
20+
];
1521
settings = {
1622
default = {
1723
img_dir = "img";

0 commit comments

Comments
 (0)