2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, makeWrapper
|
|
|
|
|
|
|
|
, autoreconfHook
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
, waylandSupport ? true
|
|
|
|
, x11Support ? true
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
, cairo
|
|
|
|
, glib
|
|
|
|
, libnotify
|
|
|
|
, rofi-unwrapped
|
|
|
|
, wl-clipboard
|
|
|
|
, xclip
|
|
|
|
, xsel
|
2024-04-21 15:54:59 +00:00
|
|
|
, xdotool
|
|
|
|
, wtype
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rofi-emoji";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "3.4.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Mange";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-tF3yAKRUix+if+45rxg5vq83Pu33TQ6oUKWPIs/l4X0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Look for plugin-related files in $out/lib/rofi
|
|
|
|
./0001-Patch-plugindir-to-output.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs clipboard-adapter.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
chmod +x $out/share/rofi-emoji/clipboard-adapter.sh
|
|
|
|
wrapProgram $out/share/rofi-emoji/clipboard-adapter.sh \
|
2024-04-21 15:54:59 +00:00
|
|
|
--prefix PATH ":" ${lib.makeBinPath ([ libnotify wl-clipboard xclip xsel ]
|
|
|
|
++ lib.optionals waylandSupport [ wtype ]
|
|
|
|
++ lib.optionals x11Support [ xdotool ])}
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2022-09-09 14:08:57 +00:00
|
|
|
makeWrapper
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cairo
|
|
|
|
glib
|
|
|
|
libnotify
|
|
|
|
rofi-unwrapped
|
|
|
|
wl-clipboard
|
|
|
|
xclip
|
|
|
|
xsel
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Emoji selector plugin for Rofi";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/Mange/rofi-emoji";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ cole-h ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|