2020-09-28 00:37:44 +02:00
|
|
|
{ buildPythonApplication
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
|
|
|
|
, waylandSupport ? true
|
|
|
|
, x11Support ? true
|
|
|
|
|
2021-07-20 23:26:16 +02:00
|
|
|
, configargparse
|
2020-09-28 00:37:44 +02:00
|
|
|
, rofi
|
|
|
|
, wl-clipboard
|
|
|
|
, wtype
|
|
|
|
, xdotool
|
|
|
|
, xsel
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "rofimoji";
|
2021-05-22 07:32:32 +02:00
|
|
|
version = "5.1.0";
|
2020-09-28 00:37:44 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fdw";
|
|
|
|
repo = "rofimoji";
|
|
|
|
rev = version;
|
2021-05-22 07:32:32 +02:00
|
|
|
sha256 = "sha256-bLV0hYDjVH11euvNHUHZFcCVywuceRljkCqyX4aANVs=";
|
2020-09-28 00:37:44 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
# `rofi` and the `waylandSupport` and `x11Support` dependencies
|
|
|
|
# contain binaries needed at runtime.
|
2021-07-20 23:26:16 +02:00
|
|
|
propagatedBuildInputs = with lib; [ configargparse rofi ]
|
2020-09-28 00:37:44 +02:00
|
|
|
++ optionals waylandSupport [ wl-clipboard wtype ]
|
|
|
|
++ optionals x11Support [ xdotool xsel ];
|
|
|
|
|
|
|
|
# The 'extractors' sub-module is used for development
|
|
|
|
# and has additional dependencies.
|
2020-12-11 07:35:07 +01:00
|
|
|
postPatch = ''
|
|
|
|
rm -rf extractors
|
|
|
|
'';
|
2020-09-28 00:37:44 +02:00
|
|
|
|
2021-01-25 21:45:33 +01:00
|
|
|
# no tests executed
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-09-28 00:37:44 +02: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 ];
|
|
|
|
};
|
|
|
|
}
|