aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorMarius Bakke <mbakke@fastmail.com>2017-03-21 07:02:36 +0100
committerMarius Bakke <mbakke@fastmail.com>2017-03-21 12:37:41 +0100
commit4b9a5bd990a4c734828571147f9fec01c7053fcc (patch)
tree2543b66f984c5138128860fa4c9d67e212b8754a /gnu/packages
parenta4f542341511f33ece18d16b68118214da8143ec (diff)
downloadguix-4b9a5bd990a4c734828571147f9fec01c7053fcc.tar
guix-4b9a5bd990a4c734828571147f9fec01c7053fcc.tar.gz
gnu: kodi: Wrap executable so it finds libcurl.
* gnu/packages/kodi.scm (kodi)[arguments]: Add 'wrap' phase.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/kodi.scm9
1 files changed, 8 insertions, 1 deletions
diff --git a/gnu/packages/kodi.scm b/gnu/packages/kodi.scm
index d35758ba40..a60e2c0548 100644
--- a/gnu/packages/kodi.scm
+++ b/gnu/packages/kodi.scm
@@ -339,7 +339,14 @@ generator library for C++.")
#t))
(add-before 'check 'build-kodi-test
(lambda _
- (zero? (system* "make" "kodi-test")))))))
+ (zero? (system* "make" "kodi-test"))))
+ (add-after 'install 'wrap
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out"))
+ (curl (string-append (assoc-ref inputs "curl") "/lib")))
+ (wrap-program (string-append out "/bin/kodi")
+ `("LD_LIBRARY_PATH" suffix (,curl)))
+ #t))))))
;; TODO: Add dependencies for:
;; - nfs
;; - cec