tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
emote: 3.1.0 -> 4.0.1
Sandro Jäckel
2 years ago
0000008f
d30970cd
+11
-14
1 changed file
expand all
collapse all
unified
split
pkgs
tools
inputmethods
emote
default.nix
+11
-14
pkgs/tools/inputmethods/emote/default.nix
···
1
1
-
{ lib, fetchFromGitHub, python3Packages, wrapGAppsHook, gobject-introspection, gtk3, keybinder3, xdotool, pango, gdk-pixbuf, atk }:
1
1
+
{ lib, fetchFromGitHub, python3Packages, wrapGAppsHook, gobject-introspection, keybinder3, xdotool }:
2
2
3
3
python3Packages.buildPythonApplication rec {
4
4
pname = "emote";
5
5
-
version = "3.1.0";
5
5
+
version = "4.0.1";
6
6
7
7
src = fetchFromGitHub {
8
8
owner = "tom-james-watson";
9
9
repo = "Emote";
10
10
rev = "v${version}";
11
11
-
sha256 = "sha256-brGU5LzE9A1F5AVNIuyd8vFKEh58ijRB5qVEID/KJfY=";
11
11
+
sha256 = "sha256-+GpL4Rp0ECsxXGP9dWZbVNkH7H2GF1brDTLsB+TQY5A=";
12
12
};
13
13
14
14
postPatch = ''
15
15
-
substituteInPlace setup.py \
16
16
-
--replace "pygobject==3.36.0" "pygobject" \
17
17
-
--replace "manimpango==0.3.0" "manimpango"
15
15
+
sed -i setup.py -e '/==.*/d'
18
16
substituteInPlace emote/config.py --replace 'os.environ.get("SNAP")' "'$out/share/emote'"
19
17
substituteInPlace emote/picker.py --replace 'os.environ.get("SNAP_VERSION", "dev build")' "'$version'"
20
18
substituteInPlace snap/gui/emote.desktop --replace "Icon=\''${SNAP}/usr/share/icons/emote.svg" "Icon=emote.svg"
···
26
24
];
27
25
28
26
buildInputs = [
29
29
-
atk
30
30
-
gdk-pixbuf
31
31
-
gtk3
27
27
+
# used by gobject-introspection's setup-hook and only detected at runtime
32
28
keybinder3
33
33
-
pango
34
29
];
35
30
36
36
-
propagatedBuildInputs = [
37
37
-
python3Packages.manimpango
38
38
-
python3Packages.pygobject3
31
31
+
propagatedBuildInputs = with python3Packages; [
32
32
+
dbus-python
33
33
+
manimpango
34
34
+
pygobject3 # not listed in setup.py
35
35
+
setproctitle
39
36
];
40
37
41
38
postInstall = ''
42
39
install -D snap/gui/emote.desktop $out/share/applications/emote.desktop
43
40
install -D snap/gui/emote.svg $out/share/pixmaps/emote.svg
44
44
-
install -D -t $out/share/emote/static static/{NotoColorEmoji.ttf,emojis.csv,logo.svg,style.css}
41
41
+
install -D -t $out/share/emote/static static/{emojis.csv,logo.svg,style.css}
45
42
'';
46
43
47
44
dontWrapGApps = true;