guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 45/86] gnu: Add rust-time.


From: ng0
Subject: [PATCH 45/86] gnu: Add rust-time.
Date: Tue, 3 Jan 2017 23:36:01 +0000

* gnu/packages/rust.scm (rust-time): New variable.
---
 gnu/packages/rust.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index 0ddea98f9..9255f3fd7 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -1263,3 +1263,29 @@ written in safe Rust, compatible with the current stable 
release.")
 @code{derive(RustcEncodable, RustcDecodable)} mode in the compiler.  It also
 includes support for hex, base64, and json encoding and decoding.")
     (license (list license:expat license:asl2.0))))
+
+(define-public rust-time
+  (package
+    (name "rust-time")
+    (version "0.1.35")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "time" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1bw977mljs38cdajkpl1g55jz5rj76d8pdxkgbh59pr05bbccziw"))))
+    (build-system cargo-build-system)
+    (native-inputs
+     `(("rust-log" ,rust-log "src")))
+    (inputs
+     `(("rust-libc" ,rust-libc "src")
+       ("rust-rustc-serialize" ,rust-rustc-serialize "src")))
+    (home-page "https://github.com/rust-lang/time";)
+    (synopsis "Utilities for working with time-related functions")
+    (description
+     "@code{time} provides utilities for working with
+time-related functions in Rust.")
+    (license (list license:expat license:asl2.0))))
-- 
2.11.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]