diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2019-10-23 09:52:23 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2019-10-23 10:43:57 +0300 |
commit | a41ea6dc73a9b796d4789fd95e854c1e715a8fc6 (patch) | |
tree | 7771d47a5b6f9bffafbdbf0c4d29d60741fb3f00 /gnu | |
parent | 235d82dfc093dc7b261892cb4a7138b3c74874e7 (diff) | |
download | guix-patches-a41ea6dc73a9b796d4789fd95e854c1e715a8fc6.tar guix-patches-a41ea6dc73a9b796d4789fd95e854c1e715a8fc6.tar.gz |
gnu: Add rust-rand-core-0.3.
* gnu/packages/rust-cbindgen.scm (rust-rand-core-0.3): New hidden
variable.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/rust-cbindgen.scm | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gnu/packages/rust-cbindgen.scm b/gnu/packages/rust-cbindgen.scm index 4f15d33eef..c8fd57f925 100644 --- a/gnu/packages/rust-cbindgen.scm +++ b/gnu/packages/rust-cbindgen.scm @@ -383,3 +383,20 @@ functionality.") (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)))))) |