summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2018-10-30 11:03:48 +0200
committerEfraim Flashner <efraim@flashner.co.il>2018-10-30 11:03:48 +0200
commitf8ddf719f3b4005b0cff0d36a82d23c07f2c2913 (patch)
tree27d0c9b6af2ea97a17968ccaee643b0bfb4e5d89 /gnu/packages
parent1371e2250ad04d658a6d85b3ded1c607a4090f2d (diff)
downloadguix-f8ddf719f3b4005b0cff0d36a82d23c07f2c2913.tar.gz
gnu: mujs: Install shared library.
* gnu/packages/javascript.scm (mujs)[arguments]: Add custom phase to
install libmujs.so.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/javascript.scm10
1 files changed, 8 insertions, 2 deletions
diff --git a/gnu/packages/javascript.scm b/gnu/packages/javascript.scm
index b2bbe8ec53..8731a44927 100644
--- a/gnu/packages/javascript.scm
+++ b/gnu/packages/javascript.scm
@@ -425,8 +425,14 @@ external server.")
                 "0pkv26jxwgv5ax0ylfmi4h96h79hj4gvr95218ns8wngnmgr1ny6"))))
     (build-system gnu-build-system)
     (arguments
-     '(#:phases (modify-phases %standard-phases
-                  (delete 'configure))  ; no configure
+     '(#:phases
+       (modify-phases %standard-phases
+         (delete 'configure)  ; no configure
+         (add-after 'install 'install-shared-library
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let ((out (assoc-ref outputs "out")))
+               (install-file "build/release/libmujs.so"
+                             (string-append out "/lib"))))))
        #:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out"))
                           (string-append "CC=gcc"))
        #:tests? #f))                    ; no tests