gnu: Add rust-rand-core-0.3.

* gnu/packages/rust-cbindgen.scm (rust-rand-core-0.3): New hidden
variable.
This commit is contained in:
Efraim Flashner 2019-10-23 09:52:23 +03:00
parent 235d82dfc0
commit a41ea6dc73
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -383,3 +383,20 @@ (define rust-rand-core-0.4
(properties '((hidden? . #t)))
(license (list license:asl2.0
license:expat))))
(define rust-rand-core-0.3
(package
(inherit rust-rand-core-0.4)
(name "rust-rand-core")
(version "0.3.1")
(source
(origin
(method url-fetch)
(uri (crate-uri "rand_core" version))
(file-name (string-append name "-" version ".crate"))
(sha256
(base32
"0jzdgszfa4bliigiy4hi66k7fs3gfwi2qxn8vik84ph77fwdwvvs"))))
;; This version is a 0.3 API wrapper around the 0.4 version.
(arguments
`(#:cargo-inputs (("rand-core" ,rust-rand-core-0.4))))))