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