gnu: vowpal-wabbit: Don't use unstable tarball.

* gnu/packages/machine-learning.scm (vowpal-wabbit)[source]: Download
using git-fetch.
[arguments]: Add custom 'make-files-writable phase.
This commit is contained in:
Efraim Flashner 2020-03-29 20:21:25 +03:00
parent a428fdd4d0
commit 4eb40497b6
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -962,21 +962,26 @@ (define-public vowpal-wabbit
(name "vowpal-wabbit") (name "vowpal-wabbit")
(version "8.5.0") (version "8.5.0")
(source (origin (source (origin
(method url-fetch) (method git-fetch)
(uri (string-append (uri (git-reference
"https://github.com/JohnLangford/vowpal_wabbit/archive/" (url "https://github.com/JohnLangford/vowpal_wabbit")
version ".tar.gz")) (commit version)))
(sha256 (sha256
(base32 (base32
"0clp2kb7rk5sckhllxjr5a651awf4s8dgzg4659yh4hf5cqnf0gr")) "04bwzk6ifgnz3fmzid8b7avxf9n5pnx9xcjm61nkjng1vv0bpj8x"))
(file-name (string-append name "-" version ".tar.gz")))) (file-name (git-file-name name version))))
(inputs (inputs
`(("boost" ,boost) `(("boost" ,boost)
("zlib" ,zlib))) ("zlib" ,zlib)))
(arguments (arguments
`(#:configure-flags `(#:configure-flags
(list (string-append "--with-boost=" (list (string-append "--with-boost="
(assoc-ref %build-inputs "boost"))))) (assoc-ref %build-inputs "boost")))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'make-files-writable
(lambda _
(for-each make-file-writable (find-files "." ".*")) #t)))))
(build-system gnu-build-system) (build-system gnu-build-system)
(home-page "https://github.com/JohnLangford/vowpal_wabbit") (home-page "https://github.com/JohnLangford/vowpal_wabbit")
(synopsis "Fast machine learning library for online learning") (synopsis "Fast machine learning library for online learning")