gnu: Add rust-fixed-hash-0.7, rust-fixed-hash-0.2.

* gnu/packages/crates-io.scm (rust-fixed-hash-0.7): New variable.
(rust-fixed-hash-0.2): New variable. Inherit from above.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
This commit is contained in:
Attila Lendvai 2022-01-19 16:51:39 +01:00 committed by Nicolas Goaziou
parent 6b1b859d0f
commit 4e333ddc0b
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -21374,6 +21374,60 @@ (define-public rust-fixed-1
(description "This package provides fixed-point numbers in Rust.")
(license (list license:expat license:asl2.0))))
(define-public rust-fixed-hash-0.7
(package
(name "rust-fixed-hash")
(version "0.7.0")
(source
(origin
(method url-fetch)
(uri (crate-uri "fixed-hash" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "0g29r0zwf09kg70nprn0s444bn6nfsglmiafhl1pm8ajzvbhxkyg"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs
(("rust-arbitrary" ,rust-arbitrary-0.4)
("rust-byteorder" ,rust-byteorder-1)
("rust-quickcheck" ,rust-quickcheck-0.9)
("rust-rand" ,rust-rand-0.8)
("rust-rustc-hex" ,rust-rustc-hex-2)
("rust-static-assertions" ,rust-static-assertions-1))
#:cargo-development-inputs
(("rust-criterion" ,rust-criterion-0.3)
("rust-rand" ,rust-rand-0.8)
("rust-rand-xorshift" ,rust-rand-xorshift-0.2))))
(home-page "https://github.com/paritytech/parity-common")
(synopsis "Macros to define custom fixed-size hash types")
(description "This package provides Rust macros to define
custom fixed-size hash types.")
(license (list license:expat license:asl2.0))))
(define-public rust-fixed-hash-0.2
(package
(inherit rust-fixed-hash-0.7)
(name "rust-fixed-hash")
(version "0.2.5")
(source
(origin
(method url-fetch)
(uri (crate-uri "fixed-hash" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "0wvj52bf37nhg6mv5h235zgdg7nsdarag58mf4i49cdgc3l6rzks"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs
(("rust-heapsize" ,rust-heapsize-0.4)
("rust-libc" ,rust-libc-0.2)
("rust-quickcheck" ,rust-quickcheck-0.6)
("rust-rand" ,rust-rand-0.4)
("rust-rustc-hex" ,rust-rustc-hex-2)
("rust-serde" ,rust-serde-1)
("rust-serde-derive" ,rust-serde-derive-1)
("rust-uint" ,rust-uint-0.4))))))
(define-public rust-fixedbitset-0.4
(package
(name "rust-fixedbitset")