diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2021-06-15 13:35:42 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2021-06-16 12:52:42 +0200 |
commit | 1436e57652b66d294e5c8f50da8bc9d405d384f8 (patch) | |
tree | e4f27ce6e1fc2328592870def13eed3b1ab4f7d4 /gnu/packages/crates-io.scm | |
parent | bf8bb260d051d32572bdb049088dc689fc19bc8f (diff) | |
download | guix-1436e57652b66d294e5c8f50da8bc9d405d384f8.tar guix-1436e57652b66d294e5c8f50da8bc9d405d384f8.tar.gz |
gnu: Add rust-num-0.4.
* gnu/packages/crates-io.scm (rust-num-0.4): New variable.
(rust-num-0.3): Inherit from above.
Diffstat (limited to 'gnu/packages/crates-io.scm')
-rw-r--r-- | gnu/packages/crates-io.scm | 39 |
1 files changed, 31 insertions, 8 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 659c2236cb..62f81dcf9b 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -28073,8 +28073,38 @@ enhances the built-in library with some useful features.") framework.") (license license:expat))) +(define-public rust-num-0.4 + (package + (name "rust-num") + (version "0.4.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "num" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "01j6k8kjad0a96297j3qjhdhrc6cgmzhf52i0sd7yd0d2z8ndns3")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-num-bigint" ,rust-num-bigint-0.4) + ("rust-num-complex" ,rust-num-complex-0.4) + ("rust-num-integer" ,rust-num-integer-0.1) + ("rust-num-iter" ,rust-num-iter-0.1) + ("rust-num-rational" ,rust-num-rational-0.4) + ("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-0.3 (package + (inherit rust-num-0.4) (name "rust-num") (version "0.3.0") (source @@ -28086,7 +28116,6 @@ framework.") (sha256 (base32 "0jng6s3i51k3227id2z8h348l2da8x3jq4p3az9slkxwj5hifgmb")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-num-bigint" ,rust-num-bigint-0.3) @@ -28094,13 +28123,7 @@ framework.") ("rust-num-integer" ,rust-num-integer-0.1) ("rust-num-iter" ,rust-num-iter-0.1) ("rust-num-rational" ,rust-num-rational-0.3) - ("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)))) + ("rust-num-traits" ,rust-num-traits-0.2)))))) (define-public rust-num-0.2 (package |