gnu: kodi: Wrap executable so it finds libcurl.

* gnu/packages/kodi.scm (kodi)[arguments]: Add 'wrap' phase.
This commit is contained in:
Marius Bakke 2017-03-21 07:02:36 +01:00
parent a4f5423415
commit 4b9a5bd990
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 8 additions and 1 deletions

View File

@ -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