aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorJohn Soo <jsoo1@asu.edu>2019-12-19 09:34:16 -0800
committerEfraim Flashner <efraim@flashner.co.il>2020-01-02 20:16:51 +0200
commit7d041f88adb75a6f00e45ee26427cf80372929bb (patch)
tree4e8918d19ea0182b07f03acdada04c73f69e0458 /gnu
parentb4971bb6a753f1b606e4c0485fec8641df3b3679 (diff)
downloadpatches-7d041f88adb75a6f00e45ee26427cf80372929bb.tar
patches-7d041f88adb75a6f00e45ee26427cf80372929bb.tar.gz
gnu: Add rust-rand-os-0.2.
* gnu/packages/crates-io.scm (rust-rand-os-0.2): New variable. (rust-rand-os-0.1): Inherit from rust-rand-os-0.2. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/crates-io.scm35
1 files changed, 28 insertions, 7 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 56ac838a60..cd9b6a31d6 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -6625,8 +6625,34 @@ useful types and distributions, and some randomness-related algorithms.")
(license (list license:asl2.0
license:expat))))
+(define-public rust-rand-os-0.2
+ (package
+ (name "rust-rand-os")
+ (version "0.2.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "rand_os" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "06is69f8rfzs620g5b54k6cgy5yaycrsyqg55flyfrsf8g88733f"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:skip-build? #t
+ #:cargo-inputs
+ (("rust-getrandom" ,rust-getrandom-0.1)
+ ("rust-rand-core" ,rust-rand-core-0.5))))
+ (home-page "https://crates.io/crates/rand-os")
+ (synopsis "OS backed Random Number Generator")
+ (description "OS backed Random Number Generator")
+ (license (list license:asl2.0
+ license:expat))))
+
(define-public rust-rand-os-0.1
(package
+ (inherit rust-rand-os-0.2)
(name "rust-rand-os")
(version "0.1.3")
(source
@@ -6637,13 +6663,8 @@ useful types and distributions, and some randomness-related algorithms.")
(sha256
(base32
"0wahppm0s64gkr2vmhcgwc0lij37in1lgfxg5rbgqlz0l5vgcxbv"))))
- (build-system cargo-build-system)
- (home-page "https://crates.io/crates/rand_os")
- (synopsis "OS backed Random Number Generator")
- (description "OS backed Random Number Generator")
- (properties '((hidden? . #t)))
- (license (list license:asl2.0
- license:expat))))
+ (arguments `())
+ (properties '((hidden? . #t)))))
(define-public rust-rand-pcg-0.1
(package