summaryrefslogtreecommitdiff
path: root/gnu/packages/crypto.scm
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-08-25 09:26:51 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-09-02 21:04:24 +0100
commit83f234a549a460caa4aece3378aa9258cd428167 (patch)
tree3cf4e4c137b10c62788adbb33965446abb41ba70 /gnu/packages/crypto.scm
parent520ba1b90467cc9839d9cad9a097c0d5600aaff5 (diff)
gnu: crc32c: Move to (gnu packages crypto).
* gnu/packages/cpp.scm (crc32c): Move from here… * gnu/packages/crypto.scm (crc32c): …to here. Change-Id: I62bee9e02c9480646093c174dfe84ccc72e4577a Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/crypto.scm')
-rw-r--r--gnu/packages/crypto.scm34
1 files changed, 34 insertions, 0 deletions
diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm
index 2459f2695f8..a2f1cbe1dda 100644
--- a/gnu/packages/crypto.scm
+++ b/gnu/packages/crypto.scm
@@ -106,6 +106,40 @@
#:use-module (srfi srfi-1)
#:use-module (srfi srfi-26))
+(define-public crc32c
+ (package
+ (name "crc32c")
+ (version "1.1.2")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/google/crc32c")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0966lyy3w5cnrs0c0fkma4hga51k54hns72l4n76944awqssap7j"))
+ (patches (search-patches "crc32c-unbundle-googletest.patch"))))
+ (build-system cmake-build-system)
+ (arguments
+ (list
+ #:configure-flags
+ #~(list "-DBUILD_SHARED_LIBS=ON"
+ "-DCRC32C_BUILD_BENCHMARKS=OFF"
+ "-DCRC32C_USE_GLOG=OFF"
+ (string-append
+ "-DCRC32C_BUILD_TESTS="
+ ;; TODO: perhaps infer #:tests?
+ (if #$(%current-target-system)
+ "OFF" "ON")))))
+ (native-inputs (list googletest))
+ (home-page "https://github.com/google/crc32c")
+ (synopsis "Cyclic redundancy check")
+ (description
+ "This package provides architecture-specific implementations of the
+CRC32C algorithm, which is specified in RFC 3720, section 12.1.")
+ (license license:bsd-3)))
+
(define-public libblake3
(package
(name "libblake3")