guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/03: gnu: vowpal-wabbit: Install more headers.


From: guix-commits
Subject: 01/03: gnu: vowpal-wabbit: Install more headers.
Date: Sun, 30 Aug 2020 07:48:11 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit d9bba529fca41dcb36735121c2dc3d68dd4ffacb
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Aug 30 14:13:32 2020 +0300

    gnu: vowpal-wabbit: Install more headers.
    
    * gnu/packages/machine-learning.scm (vowpal-wabbit)[arguments]: Add
    'install-more-headers phase to install more headers.
---
 gnu/packages/machine-learning.scm | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/machine-learning.scm 
b/gnu/packages/machine-learning.scm
index 1f4c2e2..05646dd 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -1049,7 +1049,16 @@ the following advantages:
        (modify-phases %standard-phases
          (add-after 'unpack 'make-files-writable
            (lambda _
-             (for-each make-file-writable (find-files "." ".*")) #t)))))
+             (for-each make-file-writable (find-files "." ".*")) #t))
+         (add-after 'install 'install-more-headers
+           (lambda* (#:key outputs #:allow-other-keys)
+             (for-each
+               (lambda (file)
+                 (install-file file (string-append
+                                      (assoc-ref outputs "out")
+                                      "/include/vowpalwabbit")))
+               (find-files "vowpalwabbit" "\\.h$"))
+             #t)))))
     (build-system gnu-build-system)
     (home-page "https://github.com/JohnLangford/vowpal_wabbit";)
     (synopsis "Fast machine learning library for online learning")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]