summary refs log tree commit diff
path: root/gnu/packages/crates-io.scm
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2020-12-21 21:22:37 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2021-01-05 21:14:11 +0100
commitc8ffcf7e6c83a6dfcc853a2fb1e6c53a2ff71b09 (patch)
treed9ad7605809cd38149235fc089ac36fabea951cd /gnu/packages/crates-io.scm
parentb4161c61234b051665f8806d91768ce93586a5c2 (diff)
downloadguix-c8ffcf7e6c83a6dfcc853a2fb1e6c53a2ff71b09.tar.gz
gnu: Add rust-nanorand-0.4.
* gnu/packages/crates-io.scm (rust-nanorand-0.4): New variable.
Diffstat (limited to 'gnu/packages/crates-io.scm')
-rw-r--r--gnu/packages/crates-io.scm24
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index eaf30faf4f..1e1d5b8006 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -18611,6 +18611,30 @@ libmysqlclient.")
 quick compile time, and minimal dependencies.")
     (license license:zlib)))
 
+(define-public rust-nanorand-0.4
+  (package
+    (inherit rust-nanorand-0.5)
+    (name "rust-nanorand")
+    (version "0.4.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "nanorand" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1ifpjgir1a6lw64jkb6la5hb8j5jvqq70nmxgzjj0cjf13jd3kys"))))
+    (arguments
+     `(#:skip-build? #true              ;error with pre-release randomize
+       #:cargo-inputs
+       (("rust-getrandom" ,rust-getrandom-0.2)
+        ("rust-zeroize" ,rust-zeroize-1))
+       #:cargo-development-inputs
+       (("rust-criterion" ,rust-criterion-0.3)
+        ("rust-fastrand" ,rust-fastrand-1)
+        ("rust-hex" ,rust-hex-0.4)
+        ("rust-random-fast-rng" ,rust-random-fast-rng-0.1)
+        ("rust-randomize" ,rust-randomize-4))))))
+
 (define-public rust-nasm-rs-0.2
   (package
     (name "rust-nasm-rs")