guix-commits
[Top][All Lists]
Advanced

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

08/12: gnu: hypre: Don't use unstable tarball.


From: guix-commits
Subject: 08/12: gnu: hypre: Don't use unstable tarball.
Date: Sun, 14 Apr 2019 23:18:53 -0400 (EDT)

nckx pushed a commit to branch master
in repository guix.

commit fabcbf326115192bce5bb6a5e3d9c9a801b1662b
Author: Tobias Geerinckx-Rice <address@hidden>
Date:   Tue Apr 9 00:18:17 2019 +0200

    gnu: hypre: Don't use unstable tarball.
    
    * gnu/packages/maths.scm (hypre)[source]: Use GIT-FETCH and
    GIT-FILE-NAME.
---
 gnu/packages/maths.scm | 35 ++++++++++++++++++-----------------
 1 file changed, 18 insertions(+), 17 deletions(-)

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



reply via email to

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