diff options
author | Jaeme Sifat <jaeme@runbox.com> | 2023-10-29 00:26:56 -0400 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2023-11-28 07:59:26 +0200 |
commit | 73a7985e50026832ba5dbd1a329a86de4d6e370f (patch) | |
tree | 6171d7f08585c7b40385d10e454b767b4d720cce /gnu/packages | |
parent | b0dd9ac3a713a82011d8a1b88847b023f99cac9d (diff) | |
download | guix-73a7985e50026832ba5dbd1a329a86de4d6e370f.tar.gz |
gnu: Add rust-timeago-0.4.
* gnu/packages/crates-io.scm (rust-timeago-0.4): New variable. Signed-off-by: Jaeme Sifat <jaeme@runbox.com> Change-Id: I5be1440e86fd04f6e9e3307f2ac14f7f0baef27a Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/crates-io.scm | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 9de2276545..b1091ef9c5 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -77425,6 +77425,28 @@ in Rust.") (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") |