We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4348aa9 commit eeec7f7Copy full SHA for eeec7f7
tests/test-sources/plugins/by-name/clipboard-image/default.nix
@@ -1,4 +1,7 @@
1
-{ pkgs, ... }:
+{ pkgs, lib, ... }:
2
+let
3
+ inherit (pkgs.stdenv) hostPlatform;
4
+in
5
{
6
empty = {
7
plugins.clipboard-image = {
@@ -11,7 +14,10 @@
11
14
12
15
enable = true;
13
16
- clipboardPackage = pkgs.wl-clipboard;
17
+ clipboardPackage = lib.mkMerge [
18
+ (lib.mkIf hostPlatform.isLinux pkgs.wl-clipboard)
19
+ (lib.mkIf hostPlatform.isDarwin pkgs.pngpaste)
20
+ ];
21
settings = {
22
default = {
23
img_dir = "img";
0 commit comments