2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
|
|
|
, substituteAll
|
|
|
|
, makeWrapper
|
|
|
|
|
|
|
|
, autoreconfHook
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
, cairo
|
|
|
|
, glib
|
|
|
|
, libnotify
|
|
|
|
, rofi-unwrapped
|
|
|
|
, wl-clipboard
|
|
|
|
, xclip
|
|
|
|
, xsel
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rofi-emoji";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "2.2.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Mange";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "01f9nw54mbwlj00mclf7qc2y95riaihzznbbmp0wc4c52pvxki4q";
|
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 \
|
|
|
|
--prefix PATH ":" ${lib.makeBinPath [ libnotify wl-clipboard xclip xsel ]}
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cairo
|
|
|
|
glib
|
|
|
|
libnotify
|
|
|
|
makeWrapper
|
|
|
|
rofi-unwrapped
|
|
|
|
wl-clipboard
|
|
|
|
xclip
|
|
|
|
xsel
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An emoji selector plugin for Rofi";
|
|
|
|
homepage = "https://github.com/Mange/rofi-emoji";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ cole-h ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|