summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2020-01-20 21:44:57 +0200
committerEfraim Flashner <efraim@flashner.co.il>2020-01-21 16:23:57 +0200
commit790c528525aa31839752ba3d59b1cc4c0e4c10de (patch)
tree3b682325e03fe4b94cf2fa066ceed0381d56113b /gnu
parent54af2e59e29b58fe6a47355367a7a8d386c9c795 (diff)
downloadguix-790c528525aa31839752ba3d59b1cc4c0e4c10de.tar.gz
gnu: Add rust-rand-core-0.2.
* gnu/packages/crates-io.scm (rust-rand-core-0.2): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/crates-io.scm19
1 files changed, 19 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 54ac96045a..e096a77067 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -8333,6 +8333,25 @@ useful types and distributions, and some randomness-related algorithms.")
      `(#:skip-build? #t
        #:cargo-inputs (("rand-core" ,rust-rand-core-0.4))))))
 
+(define-public rust-rand-core-0.2
+  (package
+    (inherit rust-rand-core-0.5)
+    (name "rust-rand-core")
+    (version "0.2.2")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "rand-core" version))
+        (file-name
+         (string-append name "-" version ".tar.gz"))
+        (sha256
+         (base32
+          "0wikbw2a36bz8ywjyycjrd7db6ra3yzj14zs1ysxz2fiqhia8q8r"))))
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs
+       (("rust-rand-core" ,rust-rand-core-0.3))))))
+
 (define-public rust-rand-hc-0.2
   (package
     (name "rust-rand-hc")