summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
Diffstat (limited to 'gnu')
-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