mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-12 18:24:35 +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 = {
|
empty = {
|
||||||
plugins.clipboard-image = {
|
plugins.clipboard-image = {
|
||||||
|
@ -11,7 +14,10 @@
|
||||||
plugins.clipboard-image = {
|
plugins.clipboard-image = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
clipboardPackage = pkgs.wl-clipboard;
|
clipboardPackage = lib.mkMerge [
|
||||||
|
(lib.mkIf hostPlatform.isLinux pkgs.wl-clipboard)
|
||||||
|
(lib.mkIf hostPlatform.isDarwin pkgs.pngpaste)
|
||||||
|
];
|
||||||
settings = {
|
settings = {
|
||||||
default = {
|
default = {
|
||||||
img_dir = "img";
|
img_dir = "img";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue