aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Kądziołka <kuba@kadziolka.net>2020-06-24 16:45:04 +0200
committerJakub Kądziołka <kuba@kadziolka.net>2020-06-24 21:14:33 +0200
commitc434a3fbc09f5e56f29c0d86b6c02cd6cb79cec6 (patch)
treeb0cfa19abc8bcae238708c775da775c883bc4fd3
parent4f5c689d1082f11c2f8d4d6d7462bdb27c54e9e5 (diff)
downloadguix-c434a3fbc09f5e56f29c0d86b6c02cd6cb79cec6.tar
guix-c434a3fbc09f5e56f29c0d86b6c02cd6cb79cec6.tar.gz
gnu: Add rust-humantime-2.
* gnu/packages/crates-io.scm (rust-humantime-2): New variable. (rust-humantime-1.3): Inherit from rust-humantime-2.
-rw-r--r--gnu/packages/crates-io.scm36
1 files changed, 28 insertions, 8 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 2846b997f5..9ed8bc6e39 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -10003,10 +10003,10 @@ or response body.")
"This package provides a tiny, safe, speedy, zero-copy HTTP/1.x parser.")
(license (list license:asl2.0 license:expat))))
-(define-public rust-humantime-1.3
+(define-public rust-humantime-2
(package
(name "rust-humantime")
- (version "1.3.0")
+ (version "2.0.1")
(source
(origin
(method url-fetch)
@@ -10015,15 +10015,12 @@ or response body.")
(string-append name "-" version ".tar.gz"))
(sha256
(base32
- "0krwgbf35pd46xvkqg14j070vircsndabahahlv3rwhflpy4q06z"))))
+ "0yivhqyi8xik2j6sd3q45ybakjx8jsx5632dx9xjn0birh4dj6iw"))))
(build-system cargo-build-system)
(arguments
- `(#:skip-build? #t
- #:cargo-inputs
- (("rust-quick-error" ,rust-quick-error-1.2))
- #:cargo-development-inputs
+ `(#:cargo-development-inputs
(("rust-chrono" ,rust-chrono-0.4)
- ("rust-rand" ,rust-rand-0.4)
+ ("rust-rand" ,rust-rand-0.6)
("rust-time" ,rust-time-0.1))))
(home-page "https://github.com/tailhook/humantime")
(synopsis
@@ -10033,6 +10030,29 @@ or response body.")
SystemTime}}.")
(license (list license:expat license:asl2.0))))
+(define-public rust-humantime-1.3
+ (package
+ (inherit rust-humantime-2)
+ (name "rust-humantime")
+ (version "1.3.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "humantime" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0krwgbf35pd46xvkqg14j070vircsndabahahlv3rwhflpy4q06z"))))
+ (arguments
+ `(#:skip-build? #t
+ #:cargo-inputs
+ (("rust-quick-error" ,rust-quick-error-1.2))
+ #:cargo-development-inputs
+ (("rust-chrono" ,rust-chrono-0.4)
+ ("rust-rand" ,rust-rand-0.4)
+ ("rust-time" ,rust-time-0.1))))))
+
(define-public rust-hyper-0.12
(package
(name "rust-hyper")