gnu: re2: Download sources from git.

* gnu/packages/regex.scm (re2)[source]: Change to GIT-FETCH.
This commit is contained in:
Marius Bakke 2018-12-04 16:13:17 +01:00
parent db2db1296b
commit 56302fc1ec
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -23,6 +23,7 @@ (define-module (gnu packages regex)
#:use-module ((guix licenses) #:prefix license:) #:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages) #:use-module (guix packages)
#:use-module (guix download) #:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix build-system gnu) #:use-module (guix build-system gnu)
#:use-module (guix utils)) #:use-module (guix utils))
@ -32,12 +33,12 @@ (define-public re2
(version "2018-10-01") (version "2018-10-01")
(home-page "https://github.com/google/re2") (home-page "https://github.com/google/re2")
(source (origin (source (origin
(method url-fetch) (method git-fetch)
(uri (string-append home-page "/archive/" version ".tar.gz")) (uri (git-reference (url home-page) (commit version)))
(file-name (string-append name "-" version ".tar.gz")) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"10fsxsj3yip34hp2zl5rw8h2x2lgnp83fwrh7m0qfd9m99qrf4x3")))) "086n0ldr2sqvybck9r0vc302yspj0x7nq554siadspfl1in8ysf6"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:modules ((guix build gnu-build-system) `(#:modules ((guix build gnu-build-system)