tests/plugins/clipboard-image: set platform-specific clipboardPackage
Some checks are pending
Publish every Git push to main to FlakeHub / flakehub-publish (push) Waiting to run
Publish every git push to Flakestry / publish-flake (push) Waiting to run
Documentation / Version info (push) Waiting to run
Documentation / Build (push) Blocked by required conditions
Documentation / Combine builds (push) Blocked by required conditions
Documentation / Deploy (push) Blocked by required conditions

This commit is contained in:
Matt Sturgeon 2025-07-10 14:33:17 +01:00
parent 4348aa9fad
commit eeec7f7c31

View file

@ -1,4 +1,7 @@
{ pkgs, ... }:
{ pkgs, lib, ... }:
let
inherit (pkgs.stdenv) hostPlatform;
in
{
empty = {
plugins.clipboard-image = {
@ -11,7 +14,10 @@
plugins.clipboard-image = {
enable = true;
clipboardPackage = pkgs.wl-clipboard;
clipboardPackage = lib.mkMerge [
(lib.mkIf hostPlatform.isLinux pkgs.wl-clipboard)
(lib.mkIf hostPlatform.isDarwin pkgs.pngpaste)
];
settings = {
default = {
img_dir = "img";