-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
/
Copy pathpackage.nix
69 lines (60 loc) · 1.42 KB
/
package.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
lib,
python3Packages,
fetchFromGitHub,
installShellFiles,
waylandSupport ? true,
x11Support ? true,
rofi,
wl-clipboard,
wtype,
xdotool,
xsel,
}:
python3Packages.buildPythonApplication rec {
pname = "rofimoji";
version = "6.3.1";
pyproject = true;
src = fetchFromGitHub {
owner = "fdw";
repo = "rofimoji";
rev = "refs/tags/${version}";
hash = "sha256-gYLUUbT6OHMo2nzJ//Pa0vZ9WPcHs6YnAjTKNO07VNk=";
};
nativeBuildInputs = [
python3Packages.poetry-core
installShellFiles
];
# `rofi` and the `waylandSupport` and `x11Support` dependencies
# contain binaries needed at runtime.
propagatedBuildInputs =
[
python3Packages.configargparse
rofi
]
++ lib.optionals waylandSupport [
wl-clipboard
wtype
]
++ lib.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";
changelog = "https://github.com/fdw/rofimoji/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ justinlovinger ];
};
}