From 83f234a549a460caa4aece3378aa9258cd428167 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Mon, 25 Aug 2025 09:26:51 +0200 Subject: [PATCH] gnu: crc32c: Move to (gnu packages crypto). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/cpp.scm (crc32c): Move from here… * gnu/packages/crypto.scm (crc32c): …to here. Change-Id: I62bee9e02c9480646093c174dfe84ccc72e4577a Signed-off-by: Sharlatan Hellseher --- gnu/packages/cpp.scm | 32 -------------------------------- gnu/packages/crypto.scm | 34 ++++++++++++++++++++++++++++++++++ gnu/packages/telegram.scm | 1 + 3 files changed, 35 insertions(+), 32 deletions(-) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index a12dcb9d91137b58c24be04bfddb09f5690db2b2..53707fcb0ba683acc112b42e46914dcf61d0bad3 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -3367,38 +3367,6 @@ templated string type for compatibility with any STL-like string (std::string, std::wstring, etc).") (license license:boost1.0))) -(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 fast-float-test-files (let ((name "fast-float-test-files") (version "1.0.0")) diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm index 2459f2695f8011612393097f8c3f00fc19df0523..a2f1cbe1dda7c83cc01a7fe74d08e07d8add645a 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") diff --git a/gnu/packages/telegram.scm b/gnu/packages/telegram.scm index 1c9b0de6b294f6720d3620bd90ae9944638dd7ac..3ac19e5615608acac43688740fe918cd1598625c 100644 --- a/gnu/packages/telegram.scm +++ b/gnu/packages/telegram.scm @@ -37,6 +37,7 @@ #:use-module (gnu packages compression) #:use-module (gnu packages c) #:use-module (gnu packages cpp) + #:use-module (gnu packages crypto) #:use-module (gnu packages digest) #:use-module (gnu packages fcitx) #:use-module (gnu packages fcitx5)