From ac26d5ed0dd76fead8a9aedff3cdac55da7162b5 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 8 Feb 2024 10:24:00 +0200 Subject: [PATCH] gnu: Add rust-bitstream-io-2. * gnu/packages/crates-io.scm (rust-bitstream-io-2): New variable. (rust-bitstream-io-1): Inherit from rust-bitstream-io-2. Change-Id: I6cdaba36311ce09efc821f95f5d576c923d9b4aa --- gnu/packages/crates-io.scm | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 23a8a2c9da..1e13c2b5d3 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -6361,8 +6361,28 @@ (define-public rust-bitreader-0.3 the buffer.") (license (list license:expat license:asl2.0)))) +(define-public rust-bitstream-io-2 + (package + (name "rust-bitstream-io") + (version "2.2.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "bitstream-io" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1nkny66c4hagpc6l656jvvlnz212msv6icca0f0jw7hpa6d9ij86")))) + (build-system cargo-build-system) + (home-page "https://github.com/tuffy/bitstream-io") + (synopsis "Read/write un-aligned values from big or little-endian streams") + (description + "This package is a library for reading/writing un-aligned values from/to +streams in big-endian and little-endian formats.") + (license (list license:expat license:asl2.0)))) + (define-public rust-bitstream-io-1 (package + (inherit rust-bitstream-io-2) (name "rust-bitstream-io") (version "1.0.0") (source @@ -6372,14 +6392,7 @@ (define-public rust-bitstream-io-1 (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "01pyk3pipwcbaghi7f0lmp3izjl902cv21yf4b1v5nipkrrrqlq3")))) - (build-system cargo-build-system) - (arguments `(#:skip-build? #t)) - (home-page "https://github.com/tuffy/bitstream-io") - (synopsis "Read/write un-aligned values from big or little-endian streams") - (description - "This package is a library for reading/writing un-aligned values from/to -streams in big-endian and little-endian formats.") - (license (list license:expat license:asl2.0)))) + (arguments `(#:skip-build? #t)))) (define-public rust-bitstream-io-0.8 (package