diff mbox series

[bug#47948,43/49] gnu: Add rust-rand-xorshift.

Message ID 20210422102208.1154-43-dannym@scratchpost.org
State New
Headers show
Series [bug#47948,01/49] gnu: rust-byteorder: Update to 1.4.3. | expand

Commit Message

Danny Milosavljevic April 22, 2021, 10:22 a.m. UTC
* gnu/packages/crates-io.scm (rust-rand-xorshift-0.3): New variable.
---
 gnu/packages/crates-io.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 8bbb70c97f..7c08df7554 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -51277,3 +51277,31 @@  configuration file and/or environment variables.")
     (synopsis "Ecmascript")
     (description "Ecmascript")
     (license (list license:asl2.0 license:expat))))
+
+(define-public rust-rand-xorshift-0.3
+  (package
+    (name "rust-rand-xorshift")
+    (version "0.3.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "rand_xorshift" version))
+        (file-name
+          (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32
+            "13vcag7gmqspzyabfl1gr9ykvxd2142q2agrj8dkyjmfqmgg4nyj"))))
+    (build-system cargo-build-system)
+    (arguments
+      `(#:skip-build?
+        #t
+        #:cargo-inputs
+        (("rust-rand-core" ,rust-rand-core-0.6)
+         ("rust-serde" ,rust-serde-1))))
+    (home-page "https://rust-random.github.io/book")
+    (synopsis "Xorshift random number generator
+")
+    (description
+      "Xorshift random number generator
+")
+    (license (list license:expat license:asl2.0))))