mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-08 14:03:29 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
60 lines
1.3 KiB
Nix
60 lines
1.3 KiB
Nix
{ buildPythonApplication
|
|
, fetchFromGitHub
|
|
, lib
|
|
, python3
|
|
, installShellFiles
|
|
|
|
, waylandSupport ? true
|
|
, x11Support ? true
|
|
|
|
, configargparse
|
|
, rofi
|
|
, wl-clipboard
|
|
, wtype
|
|
, xdotool
|
|
, xsel
|
|
}:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "rofimoji";
|
|
version = "6.1.0";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fdw";
|
|
repo = "rofimoji";
|
|
rev = "refs/tags/${version}";
|
|
sha256 = "sha256-eyzdTMLW9nk0x74T/AhvoVSrxXugc1HgNJy8EB5BApE=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
python3.pkgs.poetry-core
|
|
installShellFiles
|
|
];
|
|
|
|
# `rofi` and the `waylandSupport` and `x11Support` dependencies
|
|
# contain binaries needed at runtime.
|
|
propagatedBuildInputs = with lib; [ configargparse rofi ]
|
|
++ optionals waylandSupport [ wl-clipboard wtype ]
|
|
++ optionals x11Support [ xdotool xsel ];
|
|
|
|
# The 'extractors' sub-module is used for development
|
|
# and has additional dependencies.
|
|
postPatch = ''
|
|
rm -rf extractors
|
|
'';
|
|
|
|
postInstall = ''
|
|
installManPage src/picker/docs/rofimoji.1
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A simple emoji and character picker for rofi";
|
|
mainProgram = "rofimoji";
|
|
homepage = "https://github.com/fdw/rofimoji";
|
|
license = licenses.mit;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ justinlovinger ];
|
|
};
|
|
}
|