gnu: fmt: Use HTTPS and git-fetch.

* gnu/packages/pretty-print.scm (fmt)[source]: Use git-fetch.
[home-page]: Use HTTPS.
This commit is contained in:
Pierre Neidhardt 2020-03-05 10:34:21 +01:00
parent fecd32501f
commit 744f445c92
No known key found for this signature in database
GPG key ID: 9BDCF497A4BBCC7F

View file

@ -25,6 +25,7 @@
(define-module (gnu packages pretty-print) (define-module (gnu packages pretty-print)
#:use-module (guix packages) #:use-module (guix packages)
#:use-module (guix licenses) #:use-module (guix licenses)
#:use-module (guix git-download)
#:use-module (guix download) #:use-module (guix download)
#:use-module (guix build-system cmake) #:use-module (guix build-system cmake)
#:use-module (guix build-system gnu) #:use-module (guix build-system gnu)
@ -168,19 +169,20 @@ (define-public fmt
(name "fmt") (name "fmt")
(version "6.0.0") (version "6.0.0")
(source (origin (source (origin
(method url-fetch) (method git-fetch)
(uri (string-append (uri (git-reference
"https://github.com/fmtlib/fmt/releases/download/" (url "https://github.com/fmtlib/fmt")
version "/fmt-" version ".zip")) (commit version)))
(file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"0h148anbaqgch6n69pxsvs1c9wmykgd052wmzgdia7qpz8w6p8dl")))) "0yfrw6by4h27k3psv9x1q7z2kdbz7pkwxidr494bpa6ppglij6ba"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
'(#:configure-flags '("-DBUILD_SHARED_LIBS=ON"))) '(#:configure-flags '("-DBUILD_SHARED_LIBS=ON")))
(native-inputs (native-inputs
`(("unzip" ,unzip))) `(("unzip" ,unzip)))
(home-page "http://fmtlib.net/") (home-page "https://fmtlib.net/")
(synopsis "Small and fast C++ formatting library") (synopsis "Small and fast C++ formatting library")
(description (description
"@code{fmt} (formerly @code{cppformat}) is a formatting library for C++. "@code{fmt} (formerly @code{cppformat}) is a formatting library for C++.