From 6299ebf211639f58a4c806480bd8afcb421c9c2f Mon Sep 17 00:00:00 2001 From: Jaeme Sifat Date: Fri, 29 Dec 2023 19:40:25 -0500 Subject: [PATCH] gnu: Add rust-crc64-2. * gnu/packages/crates-io.scm (rust-crc64-2): New variable. (rust-crc64-1): Inherit from rust-crc64-2. Change-Id: Ie4c7bcaada1c46e7546cad9bcb6c2f9503c9d44e Signed-off-by: Efraim Flashner --- gnu/packages/crates-io.scm | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 9ce04f030d..4ca94e5f04 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -15565,8 +15565,27 @@ (define-public rust-crc32fast-1 "Fast, SIMD-accelerated CRC32 (IEEE) checksum computation.") (license (list license:expat license:asl2.0)))) +(define-public rust-crc64-2 + (package + (name "rust-crc64") + (version "2.0.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "crc64" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1wwqdss36dmhz4fd0wynlaig463l4dwvr21db1fvf6aypapy61r7")))) + (build-system cargo-build-system) + (home-page "https://github.com/badboy/crc64-rs") + (synopsis "Rust CRC64 checksum implementation") + (description + "This package provides a CRC64 checksum implementation in Rust.") + (license license:bsd-3))) + (define-public rust-crc64-1 (package + (inherit rust-crc64-2) (name "rust-crc64") (version "1.0.0") (source @@ -15576,13 +15595,7 @@ (define-public rust-crc64-1 (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "0469vp0q9431pqx1236g60if5q3xyxpv4h14smkd45dfzsa6aqjm")))) - (build-system cargo-build-system) - (arguments `(#:skip-build? #t)) - (home-page "https://github.com/badboy/crc64-rs") - (synopsis "Rust CRC64 checksum implementation") - (description "This package provides a CRC64 checksum implementation in -Rust.") - (license license:bsd-3))) + (arguments `(#:skip-build? #t)))) (define-public rust-crc-catalog-2 (package