diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2016-08-25 11:04:39 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2016-08-25 11:09:28 +0200 |
commit | d37f00b97fc12a677409e13759fe3edc6ffede2c (patch) | |
tree | 0fece66b6ac317f1ccf23bb58e658dbf8471c282 | |
parent | d5332e756e8e45f22498c0d3d73a26d4b15731a8 (diff) | |
download | guix-d37f00b97fc12a677409e13759fe3edc6ffede2c.tar.gz |
gnu: ibus: Fix simple engine.
* gnu/packages/ibus.scm (ibus)[inputs]: Add libx11, setxkbmap, xmodmap. [arguments]: Add "fix-paths" phase.
-rw-r--r-- | gnu/packages/ibus.scm | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/gnu/packages/ibus.scm b/gnu/packages/ibus.scm index 8011a467e1..814984f16f 100644 --- a/gnu/packages/ibus.scm +++ b/gnu/packages/ibus.scm @@ -36,7 +36,8 @@ #:use-module (gnu packages gtk) #:use-module (gnu packages iso-codes) #:use-module (gnu packages pkg-config) - #:use-module (gnu packages python)) + #:use-module (gnu packages python) + #:use-module (gnu packages xorg)) (define-public ibus (package @@ -77,6 +78,16 @@ (delete-file c)))) (find-files "." "\\.vala")) #t)) + (add-after 'unpack 'fix-paths + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "src/ibusenginesimple.c" + (("/usr/share/X11/locale") + (string-append (assoc-ref inputs "libx11") + "/share/X11/locale"))) + (substitute* "ui/gtk3/xkblayout.vala" + (("\"(setxkbmap|xmodmap)\"" _ prog) + (string-append "\"" (assoc-ref inputs prog) "\""))) + #t)) (add-after 'wrap-program 'wrap-with-additional-paths (lambda* (#:key outputs #:allow-other-keys) ;; Make sure 'ibus-setup' runs with the correct PYTHONPATH and @@ -96,6 +107,9 @@ ("gtk+" ,gtk+) ("intltool" ,intltool) ("libnotify" ,libnotify) + ("libx11" ,libx11) + ("setxkbmap" ,setxkbmap) + ("xmodmap" ,xmodmap) ("iso-codes" ,iso-codes) ("pygobject2" ,python2-pygobject) ("python2" ,python-2))) |