gnu: Add rust-rand-core-0.2.
authorEfraim Flashner <efraim@flashner.co.il>
Mon, 20 Jan 2020 19:44:57 +0000 (21:44 +0200)
committerEfraim Flashner <efraim@flashner.co.il>
Tue, 21 Jan 2020 14:23:57 +0000 (16:23 +0200)
* gnu/packages/crates-io.scm (rust-rand-core-0.2): New variable.

gnu/packages/crates-io.scm

index 54ac960..e096a77 100644 (file)
@@ -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")