summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/packages/crypto.scm30
1 files changed, 30 insertions, 0 deletions
diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm
index 04017e0027..72943e9437 100644
--- a/gnu/packages/crypto.scm
+++ b/gnu/packages/crypto.scm
@@ -107,6 +107,36 @@
#:use-module (srfi srfi-1)
#:use-module (srfi srfi-26))
+(define-public libblake3
+ (package
+ (name "libblake3")
+ (version "1.8.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/BLAKE3-team/BLAKE3")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1pm7285insrmpfwwal8rnp3yhvc6s2ki8b6ccmbh2qfnnl95a010"))))
+ (build-system cmake-build-system)
+ (arguments
+ (list
+ #:configure-flags
+ #~(list "-DBUILD_SHARED_LIBS=ON")
+ #:tests? #f ; XXX: there are some rust tests in the root.
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'chdir
+ (lambda _
+ (chdir "c"))))))
+ (home-page "https://github.com/BLAKE3-team/BLAKE3")
+ (synopsis "Official C implementation of BLAKE3")
+ (description "This package provides a cryptographic hash function that is
+fast, secure, parallelizable, capable of incremental updates.")
+ (license (list license:asl2.0 license:cc0)))) ; dual licensed
+
(define-public libdecaf
(package
(name "libdecaf")