espanso test

This commit is contained in:
m3tam3re 2023-05-05 06:03:00 +02:00
parent 6391b25f71
commit 7481001aae
1 changed files with 17 additions and 3 deletions

View File

@ -18,6 +18,9 @@
, wxGTK32
, makeWrapper
, stdenv
#, AppKit
#, Cocoa
#, Foundation
, waylandSupport ? true,
}:
@ -42,7 +45,7 @@ rustPlatform.buildRustPackage rec {
wxGTK32
];
NO_X11 = "true";
env.NO_X11 = lib.boolToString waylandSupport;
buildInputs = [
libXi
@ -55,7 +58,11 @@ rustPlatform.buildRustPackage rec {
libxkbcommon
xclip
xdotool
wxGTK32
] ++ lib.optionals stdenv.isDarwin [
# AppKit
# Cocoa
# Foundation
] ++ lib.optionals waylandSupport [
wl-clipboard
];
@ -68,7 +75,14 @@ rustPlatform.buildRustPackage rec {
postInstall = ''
wrapProgram $out/bin/espanso \
--prefix PATH : ${lib.makeBinPath [ libnotify xclip wl-clipboard setxkbmap ]}
--prefix PATH : ${lib.makeBinPath ([
libnotify
setxkbmap
] ++ lib.optionals waylandSupport [
wl-clipboard
] ++ lib.optionals (!waylandSupport) [
xclip
])}
'';
meta = with lib; {