aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2019-09-05 20:53:02 +0300
committerEfraim Flashner <efraim@flashner.co.il>2019-09-06 15:46:03 +0300
commit540d830edc910dd85c0d84f922a4d26848c1b35e (patch)
treeccbd7919176a5c10316c87fb2bafb5480125bad4 /gnu/packages
parent4282cbe9b0a0c142477c71369d1aa3cc7a5ea8ff (diff)
downloadguix-540d830edc910dd85c0d84f922a4d26848c1b35e.tar.gz
guix-540d830edc910dd85c0d84f922a4d26848c1b35e.zip
gnu: Add rust-time.
* gnu/packages/crates-io.scm (rust-time): New variable.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/crates-io.scm31
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 2756a193fa..ab3513af67 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -3191,6 +3191,37 @@ fixed set of worker threads.")
(license (list license:asl2.0
license:expat))))
+(define-public rust-time
+ (package
+ (name "rust-time")
+ (version "0.1.39")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "time" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "161hqx0gw722ikydanpahky447vaxqncwmkj66rny282vzqpalx1"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-libc" ,rust-libc)
+ ("rust-redox-syscall" ,rust-redox-syscall)
+ ("rust-rustc-serialize" ,rust-rustc-serialize)
+ ("rust-winapi" ,rust-winapi))
+ #:cargo-development-inputs
+ (("rust-log" ,rust-log)
+ ("rust-winapi" ,rust-winapi))
+ #:tests? #f)) ; Tests have difficulty with the timezones.
+ (home-page "https://github.com/rust-lang-deprecated/time")
+ (synopsis "Simple time handling in Rust")
+ (description
+ "This package provides utilities for working with time-related functions
+in Rust.")
+ (license (list license:asl2.0
+ license:expat))))
+
(define-public rust-tokio-mock-task
(package
(name "rust-tokio-mock-task")