aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Ignatev <valentignatev@gmail.com>2020-01-19 22:01:51 +0300
committerEfraim Flashner <efraim@flashner.co.il>2020-02-23 22:23:11 +0200
commitd47514d970e88d0a876705d6c9e9c84fca8246ea (patch)
tree1e556515ced95cdd08162c06ef8e7fe6aa15e02d
parent8ac3903bba548a37cd06fd8df1ef35fa5c1f9b08 (diff)
downloadpatches-d47514d970e88d0a876705d6c9e9c84fca8246ea.tar
patches-d47514d970e88d0a876705d6c9e9c84fca8246ea.tar.gz
gnu: Add rust-num-0.2.
* gnu/packages/crates-io.scm (rust-num-0.2): New variable. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
-rw-r--r--gnu/packages/crates-io.scm29
1 files changed, 29 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 673232e610..d848450430 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -8641,6 +8641,35 @@ combinators library.")
;; This is an ancient version and all inputs are optional.
`(#:skip-build? #t))))
+(define-public rust-num-0.2
+ (package
+ (name "rust-num")
+ (version "0.2.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "num" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0dhcvhprvvx1iaaq7sxlgxw5awmj8dibni8vhizi59zyz4q60lxq"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-num-bigint" ,rust-num-bigint-0.2)
+ ("rust-num-complex" ,rust-num-complex-0.2)
+ ("rust-num-integer" ,rust-num-integer-0.1)
+ ("rust-num-iter" ,rust-num-iter-0.1)
+ ("rust-num-rational" ,rust-num-rational-0.2)
+ ("rust-num-traits" ,rust-num-traits-0.2))))
+ (home-page "https://github.com/rust-num/num")
+ (synopsis "Collection of numeric types and traits for Rust")
+ (description
+ "This package provides a collection of numeric types and traits for Rust,
+including bigint, complex, rational, range iterators, generic integers, and more.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-num-bigint-0.2
(package
(name "rust-num-bigint")