gnu: hypre: Don't use unstable tarball.

* gnu/packages/maths.scm (hypre)[source]: Use GIT-FETCH and
GIT-FILE-NAME.
This commit is contained in:
Tobias Geerinckx-Rice 2019-04-09 00:18:17 +02:00
parent 90cea67111
commit fabcbf3261
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -3680,23 +3680,24 @@ (define-public hypre
(package (package
(name "hypre") (name "hypre")
(version "2.14.0") (version "2.14.0")
(source (origin (source
(method url-fetch) (origin
(uri (string-append "https://github.com/LLNL/hypre/archive/" (method git-fetch)
"v" version ".tar.gz")) (uri (git-reference
(file-name (string-append name "-" version ".tar.gz")) (url "https://github.com/LLNL/hypre.git")
(sha256 (commit (string-append "v" version))))
(base32 (file-name (git-file-name name version))
"0v515i73bvaz378h5465b1dy9v2gf924zy2q94cpq4qqarawvkqh")) (sha256
(modules '((guix build utils))) (base32 "12iciad718rf7vcl33klza7dcnxxa5581yav7c72l81m7mswihq9"))
(snippet (modules '((guix build utils)))
'(begin (snippet
;; Remove use of __DATE__ and __TIME__ for reproducibility; '(begin
;; substitute the tarball creation time. ;; Remove use of __DATE__ and __TIME__ for reproducibility;
(substitute* "src/utilities/HYPRE_utilities.h" ;; substitute the tarball creation time.
(("Date Compiled: .*$") (substitute* "src/utilities/HYPRE_utilities.h"
"Date Compiled: Apr 11 2018 16:24:59 +0000\"\n")) (("Date Compiled: .*$")
#t)))) "Date Compiled: Apr 11 2018 16:24:59 +0000\"\n"))
#t))))
(build-system gnu-build-system) (build-system gnu-build-system)
(outputs '("out" ;6.1 MiB of headers and libraries (outputs '("out" ;6.1 MiB of headers and libraries
"doc")) ;4.8 MiB of documentation "doc")) ;4.8 MiB of documentation