summaryrefslogtreecommitdiff
path: root/gnu/packages/machine-learning.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2020-08-30 14:13:32 +0300
committerEfraim Flashner <efraim@flashner.co.il>2020-08-30 14:13:32 +0300
commitd9bba529fca41dcb36735121c2dc3d68dd4ffacb (patch)
treed125b53946f549950d3b914dc420d7c0718f79e5 /gnu/packages/machine-learning.scm
parent841fe2df5ea8b3342454b250e69efeed494be869 (diff)
gnu: vowpal-wabbit: Install more headers.
* gnu/packages/machine-learning.scm (vowpal-wabbit)[arguments]: Add 'install-more-headers phase to install more headers.
Diffstat (limited to 'gnu/packages/machine-learning.scm')
-rw-r--r--gnu/packages/machine-learning.scm11
1 files changed, 10 insertions, 1 deletions
diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index 1f4c2e23ea..05646dd770 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")