Subject: [bug#66805] [PATCH 04/22] gnu: Add rust-timeago-0.4.

From: Jaeme Sifat <[email-masked]>
Date: Sun, 29 Oct 2023 00:26:56 -0400

* gnu/packages/crates-io.scm (rust-timeago-0.4): New variable.

Signed-off-by: Jaeme Sifat <[email-masked]>
Change-Id: I5be1440e86fd04f6e9e3307f2ac14f7f0baef27a
---
 gnu/packages/crates-io.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 20b05b2678..3efa5dadb5 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -74113,6 +74113,28 @@ (define-public rust-time-0.1
     (license (list license:asl2.0
                    license:expat))))
 
+(define-public rust-timeago-0.4
+  (package
+    (name "rust-timeago")
+    (version "0.4.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "timeago" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1rnh92sh1l4jbjvz4g7xvcvmfh7nk5k7mm2w56pnm9z0kmc0wwd1"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-chrono" ,rust-chrono-0.4)
+                       ("rust-isolang" ,rust-isolang-2))))
+    (home-page "https://github.com/vi/timeago")
+    (synopsis "Time formatting library in Rust")
+    (description
+     "This package provides a time formatting library in Rust that converts
+durations into strings.  For example, \"1 hour ago\" or \"01hou\".")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-time-core-0.1
   (package
     (name "rust-time-core")
-- 
2.34.1