gnu: libb2: Update to 0.98.

* gnu/packages/crypto.scm (libb2): Update to 0.98.
[source]: Use URL-FETCH.
[native-inputs]: Remove.
This commit is contained in:
Marius Bakke 2018-07-14 11:14:22 +02:00
parent 5939188e72
commit e9997e471d
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 27 additions and 34 deletions

View File

@ -668,39 +668,32 @@ data on your platform, so the seed itself will be as random as possible.
(license (list license:boost1.0 license:public-domain)))) (license (list license:boost1.0 license:public-domain))))
(define-public libb2 (define-public libb2
(let ((revision "1") ; upstream doesn't do releases (package
(commit "60ea749837362c226e8501718f505ab138e5c19d")) (name "libb2")
(package (version "0.98")
(name "libb2") (source (origin
(version (git-version "0.0.0" revision commit)) (method url-fetch)
(source (origin (uri (string-append
(method git-fetch) "https://github.com/BLAKE2/libb2/releases/download/v"
(uri (git-reference version "/libb2-" version ".tar.gz"))
(url "https://github.com/BLAKE2/libb2") (sha256
(commit commit))) (base32
(file-name (git-file-name name version)) "0vq39cvwy05754l565xl11rqr2jvjb6ykjzca886vi9vm71y0sg8"))))
(sha256 (build-system gnu-build-system)
(base32 (arguments
"07a2m8basxrsj9dsp5lj24y8jraj85lfy56756a7za1nfkgy04z7")))) `(#:configure-flags
(build-system gnu-build-system) (list
(native-inputs ,@(if (any (cute string-prefix? <> (or (%current-system)
`(("autoconf" ,autoconf) (%current-target-system)))
("automake" ,automake) '("x86_64" "i686"))
("libtool" ,libtool))) ;; fat only checks for Intel optimisations
(arguments '("--enable-fat")
`(#:configure-flags '())
(list "--disable-native"))) ;don't optimise at build time
,@(if (any (cute string-prefix? <> (or (%current-system) (home-page "https://blake2.net/")
(%current-target-system))) (synopsis "Library implementing the BLAKE2 family of hash functions")
'("x86_64" "i686")) (description
;; fat only checks for Intel optimisations "libb2 is a portable implementation of the BLAKE2 family of cryptographic
'("--enable-fat")
'())
"--disable-native"))) ;don't optimise at build time
(home-page "https://blake2.net/")
(synopsis "Library implementing the BLAKE2 family of hash functions")
(description
"libb2 is a portable implementation of the BLAKE2 family of cryptographic
hash functions. It includes optimised implementations for IA-32 and AMD64 hash functions. It includes optimised implementations for IA-32 and AMD64
processors, and an interface layer that automatically selects the best processors, and an interface layer that automatically selects the best
implementation for the processor it is run on. implementation for the processor it is run on.
@ -709,7 +702,7 @@ implementation for the processor it is run on.
that are faster than MD5, SHA-1, SHA-2, and SHA-3, yet are at least as secure that are faster than MD5, SHA-1, SHA-2, and SHA-3, yet are at least as secure
as the latest standard, SHA-3. It is an improved version of the SHA-3 finalist as the latest standard, SHA-3. It is an improved version of the SHA-3 finalist
BLAKE.") BLAKE.")
(license license:public-domain)))) (license license:public-domain)))
(define-public rhash (define-public rhash
(package (package