@@ -0,0 +1,45 @@
1+{ buildPythonApplication
2+, fetchFromGitHub
3+, lib
4+
5+, waylandSupport ? true
6+, x11Support ? true
7+
8+, ConfigArgParse
9+, pyxdg
10+, rofi
11+, wl-clipboard
12+, wtype
13+, xdotool
14+, xsel
15+}:
16+
17+buildPythonApplication rec {
18+ pname = "rofimoji";
19+ version = "4.3.0";
20+
21+ src = fetchFromGitHub {
22+ owner = "fdw";
23+ repo = "rofimoji";
24+ rev = version;
25+ sha256 = "08ayndpifr04njpijc5n5ii5nvibfpab39p6ngyyj0pb43792a8j";
26+ };
27+
28+ # `rofi` and the `waylandSupport` and `x11Support` dependencies
29+ # contain binaries needed at runtime.
30+ propagatedBuildInputs = with lib; [ ConfigArgParse pyxdg rofi ]
31+ ++ optionals waylandSupport [ wl-clipboard wtype ]
32+ ++ optionals x11Support [ xdotool xsel ];
33+
34+ # The 'extractors' sub-module is used for development
35+ # and has additional dependencies.
36+ postPatch = "rm -rf extractors";
37+
38+ meta = with lib; {
39+ description = "A simple emoji and character picker for rofi";
40+ homepage = "https://github.com/fdw/rofimoji";
41+ license = licenses.mit;
42+ platforms = platforms.linux;
43+ maintainers = with maintainers; [ justinlovinger ];
44+ };
45+}