mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: kaldi: Install headers and fix installation of libraries.
* gnu/packages/machine-learning.scm (kaldi)[arguments]: Fix installation of libraries and install headers in "install" phase.
This commit is contained in:
parent
a333cbf194
commit
1fdd20c7d7
1 changed files with 15 additions and 1 deletions
|
@ -1002,9 +1002,23 @@ (define-public kaldi
|
||||||
(replace 'install
|
(replace 'install
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
|
(inc (string-append out "/include"))
|
||||||
(lib (string-append out "/lib")))
|
(lib (string-append out "/lib")))
|
||||||
(mkdir-p lib)
|
(mkdir-p lib)
|
||||||
(install-file "gst-plugin/libgstonlinegmmdecodefaster.so" lib)
|
;; The build phase installed symlinks to the actual
|
||||||
|
;; libraries. Install the actual targets.
|
||||||
|
(for-each (lambda (file)
|
||||||
|
(let ((target (readlink file)))
|
||||||
|
(delete-file file)
|
||||||
|
(install-file target lib)))
|
||||||
|
(find-files lib "\\.so"))
|
||||||
|
;; Install headers
|
||||||
|
(for-each (lambda (file)
|
||||||
|
(let ((target-dir (string-append inc "/" (dirname file))))
|
||||||
|
(install-file file target-dir)))
|
||||||
|
(find-files "." "\\.h"))
|
||||||
|
(install-file "gst-plugin/libgstonlinegmmdecodefaster.so"
|
||||||
|
(string-append lib "/gstreamer-1.0"))
|
||||||
#t))))))
|
#t))))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("alsa-lib" ,alsa-lib)
|
`(("alsa-lib" ,alsa-lib)
|
||||||
|
|
Loading…
Reference in a new issue