diff options
author | Julien DIOT <jd42-git@protonmail.com> | 2024-03-26 19:42:43 +0900 |
---|---|---|
committer | Cole Helbling <cole.e.helbling@outlook.com> | 2024-03-27 07:16:43 -0700 |
commit | 899b1ed417cf21da5e33cca9b4c5e2bce8ecb301 (patch) | |
tree | 82aefbf217a6b59ed684ef76e6fbe3be239ab897 /pkgs | |
parent | 3e8d4e7ea03e694be98150248f974b11b40b7e60 (diff) |
rofi-emoji: fix missing dependencies xdotools wtype
When trying to insert an emoji, and error notification raises: `Could not find any tool to handle insertion. Please install xdotool or wtype.` This commit add those missing dependencies. To control which of these tools should be installed (one is for x11 and the other for wayland) 2 derivations arguments have been created: `x11Support` and `waylandSupport` defaulting to `true`.
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/misc/rofi-emoji/default.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/applications/misc/rofi-emoji/default.nix b/pkgs/applications/misc/rofi-emoji/default.nix index 921ba4ddd9b32..ac8518e6a2d4f 100644 --- a/pkgs/applications/misc/rofi-emoji/default.nix +++ b/pkgs/applications/misc/rofi-emoji/default.nix @@ -6,6 +6,9 @@ , autoreconfHook , pkg-config +, waylandSupport ? true +, x11Support ? true + , cairo , glib , libnotify @@ -13,6 +16,8 @@ , wl-clipboard , xclip , xsel +, xdotool +, wtype }: stdenv.mkDerivation rec { @@ -38,9 +43,12 @@ stdenv.mkDerivation rec { postFixup = '' chmod +x $out/share/rofi-emoji/clipboard-adapter.sh wrapProgram $out/share/rofi-emoji/clipboard-adapter.sh \ - --prefix PATH ":" ${lib.makeBinPath [ libnotify wl-clipboard xclip xsel ]} + --prefix PATH ":" ${lib.makeBinPath ([ libnotify wl-clipboard xclip xsel ] + ++ lib.optionals waylandSupport [ wtype ] + ++ lib.optionals x11Support [ xdotool ])} ''; + nativeBuildInputs = [ autoreconfHook pkg-config |