tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
ibus: 1.5.11 -> 1.5.13
Thomas Tuegel
10 years ago
10e3664c
6d111b35
+51
-19
2 changed files
expand all
collapse all
unified
split
pkgs
tools
inputmethods
ibus
default.nix
top-level
all-packages.nix
+47
-18
pkgs/tools/inputmethods/ibus/default.nix
···
1
1
-
{ stdenv, fetchurl, makeWrapper, python, intltool, pkgconfig
2
2
-
, gnome3, atk, pygobject3, dbus, libnotify, isocodes, gobjectIntrospection, wayland }:
1
1
+
{ stdenv, fetchurl, makeWrapper
2
2
+
, intltool, isocodes, pkgconfig
3
3
+
, python3, pygobject3
4
4
+
, gtk2, gtk3, atk, dconf, glib
5
5
+
, dbus, libnotify, gobjectIntrospection, wayland
6
6
+
}:
3
7
4
8
stdenv.mkDerivation rec {
5
9
name = "ibus-${version}";
6
6
-
version = "1.5.11";
10
10
+
version = "1.5.13";
7
11
8
12
src = fetchurl {
9
13
url = "https://github.com/ibus/ibus/releases/download/${version}/${name}.tar.gz";
10
10
-
sha256 = "1g26llizd26h9sfz4xdq8krhz19hn08pirvfbkk3g89ri8lmm6a9";
14
14
+
sha256 = "1wd5azlsgdih8qw6gi15rv130s6d90846n3r1ccwmp6z882xhwzd";
11
15
};
12
16
13
13
-
configureFlags = "--disable-gconf --enable-dconf --disable-memconf --enable-ui --enable-python-library";
17
17
+
postPatch = ''
18
18
+
# These paths will be set in the wrapper.
19
19
+
sed -e "/export IBUS_DATAROOTDIR/ s/^.*$//" \
20
20
+
-e "/export IBUS_LIBEXECDIR/ s/^.*$//" \
21
21
+
-e "/export IBUS_LOCALEDIR/ s/^.*$//" \
22
22
+
-e "/export IBUS_PREFIX/ s/^.*$//" \
23
23
+
-i "setup/ibus-setup.in"
24
24
+
'';
25
25
+
26
26
+
configureFlags = [
27
27
+
"--disable-gconf"
28
28
+
"--enable-dconf"
29
29
+
"--disable-memconf"
30
30
+
"--enable-ui"
31
31
+
"--enable-python-library"
32
32
+
];
14
33
15
34
buildInputs = [
16
16
-
makeWrapper python gnome3.glib wayland
17
17
-
intltool pkgconfig gnome3.gtk2
18
18
-
gnome3.gtk3 dbus gnome3.dconf gnome3.gconf
19
19
-
libnotify isocodes gobjectIntrospection
35
35
+
python3 pygobject3
36
36
+
intltool isocodes pkgconfig
37
37
+
gtk2 gtk3 dconf glib
38
38
+
dbus libnotify gobjectIntrospection wayland
20
39
];
21
40
41
41
+
nativeBuildInputs = [ makeWrapper ];
42
42
+
22
43
preConfigure = ''
44
44
+
# Fix hard-coded installation paths, so make does not try to overwrite our
45
45
+
# Python installation.
46
46
+
sed -e "/py2overridesdir=/ s|=.*$|=$out/lib/${python3.libPrefix}|" \
47
47
+
-e "/pyoverridesdir=/ s|=.*$|=$out/lib/${python3.libPrefix}|" \
48
48
+
-e "/PYTHON2_LIBDIR/ s|=.*|=$out/lib/${python3.libPrefix}|" \
49
49
+
-i configure
50
50
+
51
51
+
# Don't try to generate a system-wide dconf database; it wouldn't work.
23
52
substituteInPlace data/dconf/Makefile.in --replace "dconf update" "echo"
24
24
-
sed -i "s|PYTHON2_LIBDIR=.*|PYTHON2_LIBDIR=$out/lib/${python.libPrefix}|" configure
25
53
'';
26
54
27
55
preFixup = ''
28
28
-
for f in "$out"/bin/*; do
29
29
-
wrapProgram "$f" --prefix XDG_DATA_DIRS : "$out/share:$GSETTINGS_SCHEMAS_PATH" \
30
30
-
--prefix PYTHONPATH : "$(toPythonPath ${pygobject3})" \
31
31
-
--prefix LD_LIBRARY_PATH : "${gnome3.gtk3}/lib:${atk}/lib:$out/lib" \
32
32
-
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH:$out/lib/girepository-1.0" \
33
33
-
--prefix GIO_EXTRA_MODULES : "${gnome3.dconf}/lib/gio/modules"
56
56
+
for f in "$out/bin"/*; do #*/
57
57
+
wrapProgram "$f" \
58
58
+
--prefix XDG_DATA_DIRS : "$out/share:$GSETTINGS_SCHEMAS_PATH" \
59
59
+
--prefix PYTHONPATH : "$PYTHONPATH" \
60
60
+
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH:$out/lib/girepository-1.0" \
61
61
+
--prefix GIO_EXTRA_MODULES : "${dconf}/lib/gio/modules"
34
62
done
35
63
'';
36
64
37
37
-
meta = {
65
65
+
meta = with stdenv.lib; {
38
66
homepage = https://github.com/ibus/ibus;
39
67
description = "Intelligent Input Bus for Linux / Unix OS";
40
40
-
platforms = stdenv.lib.platforms.linux;
68
68
+
platforms = platforms.linux;
69
69
+
maintainers = [ maintainers.ttuegel ];
41
70
};
42
71
}
+4
-1
pkgs/top-level/all-packages.nix
···
1162
1162
1163
1163
m17n_lib = callPackage ../tools/inputmethods/m17n-lib { };
1164
1164
1165
1165
-
ibus = callPackage ../tools/inputmethods/ibus { };
1165
1165
+
ibus = callPackage ../tools/inputmethods/ibus {
1166
1166
+
inherit (python3Packages) pygobject3;
1167
1167
+
inherit (gnome3) dconf glib;
1168
1168
+
};
1166
1169
1167
1170
ibus-qt = callPackage ../tools/inputmethods/ibus/ibus-qt.nix { };
1168
1171