guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/21: gnu: Add rust-rand-xoshiro-0.1.


From: guix-commits
Subject: 01/21: gnu: Add rust-rand-xoshiro-0.1.
Date: Wed, 15 Jan 2020 02:03:58 -0500 (EST)

efraim pushed a commit to branch master
in repository guix.

commit 0bce3ebdd3f79c4bdc5e1a00d08b132a9f92d2cf
Author: Efraim Flashner <address@hidden>
AuthorDate: Tue Jan 14 19:30:43 2020 +0200

    gnu: Add rust-rand-xoshiro-0.1.
    
    * gnu/packages/crates-io.scm (rust-rand-xoshiro-0.1): New variable.
---
 gnu/packages/crates-io.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 201f500..2e3e8a9 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -7857,6 +7857,29 @@ useful types and distributions, and some 
randomness-related algorithms.")
      "Xoshiro, xoroshiro and splitmix64 random number generators.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-rand-xoshiro-0.1
+  (package
+    (inherit rust-rand-xoshiro-0.3)
+    (name "rust-rand-xoshiro")
+    (version "0.1.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "rand_xoshiro" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "0ac9ha6ll8b6l1930bd99k29jrjpsbpddvr6ycrnbi5rkwb1id03"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs
+       (("rust-byteorder" ,rust-byteorder-1.3)
+        ("rust-rand-core" ,rust-rand-core-0.3))
+       #:cargo-development-inputs
+       (("rust-rand" ,rust-rand-0.6))))))
+
 (define-public rust-rawpointer-0.1
   (package
     (name "rust-rawpointer")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]