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 , wxGTK32
, makeWrapper , makeWrapper
, stdenv , stdenv
#, AppKit
#, Cocoa
#, Foundation
, waylandSupport ? true, , waylandSupport ? true,
}: }:
@ -42,7 +45,7 @@ rustPlatform.buildRustPackage rec {
wxGTK32 wxGTK32
]; ];
NO_X11 = "true"; env.NO_X11 = lib.boolToString waylandSupport;
buildInputs = [ buildInputs = [
libXi libXi
@ -55,7 +58,11 @@ rustPlatform.buildRustPackage rec {
libxkbcommon libxkbcommon
xclip xclip
xdotool xdotool
wxGTK32 ] ++ lib.optionals stdenv.isDarwin [
# AppKit
# Cocoa
# Foundation
] ++ lib.optionals waylandSupport [
wl-clipboard wl-clipboard
]; ];
@ -68,7 +75,14 @@ rustPlatform.buildRustPackage rec {
postInstall = '' postInstall = ''
wrapProgram $out/bin/espanso \ 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; { meta = with lib; {