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
This commit is contained in:
Efraim Flashner 2024-02-08 10:24:00 +02:00
parent a225662184
commit ac26d5ed0d
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -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