nixpkgs/pkgs/by-name/ro/rofimoji/package.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

2023-12-14 13:07:18 +00:00
{ lib
, python3Packages
2020-09-27 22:37:44 +00:00
, fetchFromGitHub
2022-11-23 13:21:01 +00:00
, installShellFiles
2020-09-27 22:37:44 +00:00
, waylandSupport ? true
, x11Support ? true
, rofi
, wl-clipboard
, wtype
, xdotool
, xsel
}:
2023-12-14 13:07:18 +00:00
python3Packages.buildPythonApplication rec {
2020-09-27 22:37:44 +00:00
pname = "rofimoji";
2023-12-14 13:07:18 +00:00
version = "6.2.0";
pyproject = true;
2020-09-27 22:37:44 +00:00
src = fetchFromGitHub {
owner = "fdw";
repo = "rofimoji";
2023-12-14 13:07:18 +00:00
rev = version;
hash = "sha256-9P9hXBEfq6sqCvb2SfPBNadEoXAdWF3cmcKGEOK+EHE=";
2020-09-27 22:37:44 +00:00
};
nativeBuildInputs = [
2023-12-14 13:07:18 +00:00
python3Packages.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.
2023-12-14 13:07:18 +00:00
propagatedBuildInputs = [ python3Packages.configargparse rofi ]
++ lib.optionals waylandSupport [ wl-clipboard wtype ]
++ lib.optionals x11Support [ xdotool xsel ];
2020-09-27 22:37:44 +00:00
# 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";
mainProgram = "rofimoji";
2020-09-27 22:37:44 +00:00
homepage = "https://github.com/fdw/rofimoji";
2023-12-14 13:07:18 +00:00
changelog = "https://github.com/fdw/rofimoji/blob/${src.rev}/CHANGELOG.md";
2020-09-27 22:37:44 +00:00
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ justinlovinger ];
};
}