nixpkgs/pkgs/applications/misc/rofimoji/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

59 lines
1.3 KiB
Nix
Raw Normal View History

2020-09-27 22:37:44 +00:00
{ buildPythonApplication
, fetchFromGitHub
, lib
, python3
2022-11-23 13:21:01 +00:00
, installShellFiles
2020-09-27 22:37:44 +00:00
, waylandSupport ? true
, x11Support ? true
, configargparse
2020-09-27 22:37:44 +00:00
, rofi
, wl-clipboard
, wtype
, xdotool
, xsel
}:
buildPythonApplication rec {
pname = "rofimoji";
2022-12-31 14:44:44 +00:00
version = "6.1.0";
2022-05-13 04:01:16 +00:00
format = "pyproject";
2020-09-27 22:37:44 +00:00
src = fetchFromGitHub {
owner = "fdw";
repo = "rofimoji";
2022-07-19 02:15:58 +00:00
rev = "refs/tags/${version}";
2022-12-31 14:44:44 +00:00
sha256 = "sha256-eyzdTMLW9nk0x74T/AhvoVSrxXugc1HgNJy8EB5BApE=";
2020-09-27 22:37:44 +00:00
};
nativeBuildInputs = [
python3.pkgs.poetry-core
2022-11-23 13:21:01 +00:00
installShellFiles
];
2020-09-27 22:37:44 +00:00
# `rofi` and the `waylandSupport` and `x11Support` dependencies
# contain binaries needed at runtime.
propagatedBuildInputs = with lib; [ configargparse rofi ]
2020-09-27 22:37:44 +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-11 06:35:07 +00:00
postPatch = ''
rm -rf extractors
'';
2020-09-27 22:37:44 +00:00
2022-11-23 13:21:01 +00:00
postInstall = ''
installManPage src/picker/docs/rofimoji.1
'';
2020-09-27 22:37:44 +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 ];
};
}