2020-09-27 23:37:44 +01:00
|
|
|
{ buildPythonApplication
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
|
|
|
|
, waylandSupport ? true
|
|
|
|
, x11Support ? true
|
|
|
|
|
|
|
|
, ConfigArgParse
|
|
|
|
, pyxdg
|
|
|
|
, rofi
|
|
|
|
, wl-clipboard
|
|
|
|
, wtype
|
|
|
|
, xdotool
|
|
|
|
, xsel
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "rofimoji";
|
|
|
|
version = "4.3.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fdw";
|
|
|
|
repo = "rofimoji";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "08ayndpifr04njpijc5n5ii5nvibfpab39p6ngyyj0pb43792a8j";
|
|
|
|
};
|
|
|
|
|
|
|
|
# `rofi` and the `waylandSupport` and `x11Support` dependencies
|
|
|
|
# contain binaries needed at runtime.
|
|
|
|
propagatedBuildInputs = with lib; [ ConfigArgParse pyxdg rofi ]
|
|
|
|
++ optionals waylandSupport [ wl-clipboard wtype ]
|
|
|
|
++ optionals x11Support [ xdotool xsel ];
|
|
|
|
|
|
|
|
# The 'extractors' sub-module is used for development
|
|
|
|
# and has additional dependencies.
|
2020-12-11 06:35:07 +00:00
|
|
|
postPatch = ''
|
|
|
|
rm -rf extractors
|
|
|
|
substituteInPlace setup.py --replace 'pyxdg==0.26' 'pyxdg'
|
|
|
|
'';
|
2020-09-27 23:37:44 +01:00
|
|
|
|
2021-01-25 20:45:33 +00:00
|
|
|
# no tests executed
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-09-27 23:37:44 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|