Patchwork [11/12] gnu: Add rust-rand.

login
register
mail settings
Submitter David Craven
Date Dec. 11, 2016, 5:25 p.m.
Message ID <20161211172537.23315-12-david@craven.ch>
Download mbox | patch
Permalink /patch/18355/
State New
Headers show

Comments

David Craven - Dec. 11, 2016, 5:25 p.m.
* gnu/packages/rust.scm (rust-rand): New variable.
---
 gnu/packages/rust.scm | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
Ludovic Court├Ęs - Dec. 13, 2016, 10:50 p.m.
David Craven <david@craven.ch> skribis:

> * gnu/packages/rust.scm (rust-rand): New variable.

[...]

> +    (synopsis "Random number generators")
> +    (description "Random number generators and other randomness functionality.")

Full sentence please!

> +    (license (list license:expat license:asl2.0))))

Same as before.

OK with these changes, thanks!

Patch

diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index acff15e6f..a64f72f03 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -289,3 +289,22 @@  fast, prevents segfaults, and guarantees thread safety.")
     (description "This package provides a library for types and bindings to
 native C functions often found in libc or other common platform libraries.")
     (license (list license:expat license:asl2.0))))
+
+(define-public rust-rand
+  (package
+    (name "rust-rand")
+    (version "0.3.15")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "rand" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "178qgglinqawwsw6l8imgnplxkmxcj404jqm92pds695xhv0cbh2"))))
+    (build-system cargo-build-system)
+    (inputs
+     `(("rust-libc" ,rust-libc)))
+    (home-page "https://github.com/rust-lang/rand")
+    (synopsis "Random number generators")
+    (description "Random number generators and other randomness functionality.")
+    (license (list license:expat license:asl2.0))))