2024-04-21 15:54:59 +00:00
|
|
|
{ lib
|
|
|
|
, python3Packages
|
2020-10-07 09:15:18 +00:00
|
|
|
, fetchFromGitHub
|
2022-11-27 09:42:12 +00:00
|
|
|
, installShellFiles
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
, waylandSupport ? true
|
|
|
|
, x11Support ? true
|
|
|
|
|
|
|
|
, rofi
|
|
|
|
, wl-clipboard
|
|
|
|
, wtype
|
|
|
|
, xdotool
|
|
|
|
, xsel
|
|
|
|
}:
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2020-10-07 09:15:18 +00:00
|
|
|
pname = "rofimoji";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "6.5.0";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fdw";
|
|
|
|
repo = "rofimoji";
|
2024-05-15 15:35:15 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-CY+ddF2Rth92R22QKqOb/Us+rZhvWTaU/jKy8fljWqQ=";
|
2020-10-07 09:15:18 +00:00
|
|
|
};
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
nativeBuildInputs = [
|
2024-04-21 15:54:59 +00:00
|
|
|
python3Packages.poetry-core
|
2022-11-27 09:42:12 +00:00
|
|
|
installShellFiles
|
2022-09-30 11:47:45 +00:00
|
|
|
];
|
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
# `rofi` and the `waylandSupport` and `x11Support` dependencies
|
|
|
|
# contain binaries needed at runtime.
|
2024-04-21 15:54:59 +00:00
|
|
|
propagatedBuildInputs = [ python3Packages.configargparse rofi ]
|
|
|
|
++ lib.optionals waylandSupport [ wl-clipboard wtype ]
|
|
|
|
++ lib.optionals x11Support [ xdotool xsel ];
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
|
2022-11-27 09:42:12 +00:00
|
|
|
postInstall = ''
|
|
|
|
installManPage src/picker/docs/rofimoji.1
|
|
|
|
'';
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Simple emoji and character picker for rofi";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "rofimoji";
|
2020-10-07 09:15:18 +00:00
|
|
|
homepage = "https://github.com/fdw/rofimoji";
|
2024-04-21 15:54:59 +00:00
|
|
|
changelog = "https://github.com/fdw/rofimoji/blob/${src.rev}/CHANGELOG.md";
|
2020-10-07 09:15:18 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ justinlovinger ];
|
|
|
|
};
|
|
|
|
}
|