Add pygobject3 to PYTHONPATH and add relevant paths to LD_LIBRRY_PATH and GI_TYPELIB_PATH to fix the perference GUI (ibus-setup).
This commit is contained in:
parent
43166e306e
commit
498c068799
@ -1,5 +1,5 @@
|
||||
{ stdenv, fetchurl, makeWrapper, python, intltool, pkgconfig
|
||||
, gnome3, dbus, libnotify, isocodes, gobjectIntrospection, wayland }:
|
||||
, gnome3, atk, pygobject3, dbus, libnotify, isocodes, gobjectIntrospection, wayland }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ibus-${version}";
|
||||
@ -21,9 +21,12 @@ stdenv.mkDerivation rec {
|
||||
|
||||
preBuild = "patchShebangs ./scripts";
|
||||
|
||||
postInstall = ''
|
||||
postInstall = ''
|
||||
for f in "$out"/bin/*; do
|
||||
wrapProgram "$f" --prefix XDG_DATA_DIRS : "$out/share"
|
||||
wrapProgram "$f" --prefix XDG_DATA_DIRS : "$out/share" \
|
||||
--prefix PYTHONPATH : "$(toPythonPath ${pygobject3})" \
|
||||
--prefix LD_LIBRARY_PATH : "${gnome3.gtk3}/lib:${atk}/lib:$out/lib" \
|
||||
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH:$out/lib/girepository-1.0"
|
||||
done
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user