mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-12 10:14:31 +02:00
tests/plugins/clipboard-image: set platform-specific clipboardPackage
This commit is contained in:
parent
59a24a26b3
commit
9e554a2b0a
1 changed files with 8 additions and 2 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue