From 4b9a5bd990a4c734828571147f9fec01c7053fcc Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Tue, 21 Mar 2017 07:02:36 +0100 Subject: [PATCH] gnu: kodi: Wrap executable so it finds libcurl. * gnu/packages/kodi.scm (kodi)[arguments]: Add 'wrap' phase. --- gnu/packages/kodi.scm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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