2020-10-07 09:15:18 +00:00
|
|
|
{ buildPythonApplication
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
|
|
|
|
, waylandSupport ? true
|
|
|
|
, x11Support ? true
|
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
, configargparse
|
2020-10-07 09:15:18 +00:00
|
|
|
, rofi
|
|
|
|
, wl-clipboard
|
|
|
|
, wtype
|
|
|
|
, xdotool
|
|
|
|
, xsel
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "rofimoji";
|
2022-09-22 12:36:57 +00:00
|
|
|
version = "5.6.0";
|
2022-05-18 14:49:53 +00:00
|
|
|
format = "pyproject";
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fdw";
|
|
|
|
repo = "rofimoji";
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2022-09-22 12:36:57 +00:00
|
|
|
sha256 = "sha256-6W/59DjxrgejHSkNxpruDAws812Vjyf+GePDPbXzVbc=";
|
2020-10-07 09:15:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# `rofi` and the `waylandSupport` and `x11Support` dependencies
|
|
|
|
# contain binaries needed at runtime.
|
2021-07-24 12:14:16 +00:00
|
|
|
propagatedBuildInputs = with lib; [ configargparse rofi ]
|
2020-10-07 09:15:18 +00:00
|
|
|
++ optionals waylandSupport [ wl-clipboard wtype ]
|
|
|
|
++ optionals x11Support [ xdotool xsel ];
|
|
|
|
|
|
|
|
# The 'extractors' sub-module is used for development
|
|
|
|
# and has additional dependencies.
|
2020-12-25 13:55:36 +00:00
|
|
|
postPatch = ''
|
|
|
|
rm -rf extractors
|
|
|
|
'';
|
2020-10-07 09:15:18 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
# no tests executed
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A simple emoji and character picker for rofi";
|
|
|
|
homepage = "https://github.com/fdw/rofimoji";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ justinlovinger ];
|
|
|
|
};
|
|
|
|
}
|