aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorDiego Nicola Barbato <dnbarbato@posteo.de>2018-03-15 02:19:51 +0100
committerLudovic Courtès <ludo@gnu.org>2018-03-15 23:46:15 +0100
commitdab03baa0a4d857edf8c5752e5dd8ecaab8862a7 (patch)
tree7ad03086c0b744b84d5a9b9c16ba0c2418368ed2 /gnu/packages
parente1d0f2aa87b8045aacb821c2406ecdfa832c7473 (diff)
downloadpatches-dab03baa0a4d857edf8c5752e5dd8ecaab8862a7.tar
patches-dab03baa0a4d857edf8c5752e5dd8ecaab8862a7.tar.gz
gnu: qtox: Wrap executable and fix misplaced comma (unquote).
* gnu/packages/messaging.scm (qtox)[arguments]: Add phase "wrap-executable". [inputs]: Fix misplaced comma (unquote). Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/messaging.scm12
1 files changed, 10 insertions, 2 deletions
diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index b6323c39b2..ae489e1586 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -874,10 +874,18 @@ instant messenger with audio and video chat capabilities.")
(("__DATE__") "\"\"")
(("__TIME__") "\"\"")
(("TIMESTAMP") "\"\""))
- #t)))))
+ #t))
+ ;; Ensure that icons are found at runtime.
+ (add-after 'install 'wrap-executable
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (wrap-program (string-append out "/bin/qtox")
+ `("QT_PLUGIN_PATH" prefix
+ ,(list (string-append (assoc-ref inputs "qtsvg")
+ "/lib/qt5/plugins/"))))))))))
(inputs
`(("ffmpeg" ,ffmpeg)
- ("filteraudio", filteraudio)
+ ("filteraudio" ,filteraudio)
("glib" ,glib)
("gtk+" ,gtk+-2)
("libsodium" ,libsodium)