From 404cc212db56de26f81d3a30f9426a1b5c224236 Mon Sep 17 00:00:00 2001 From: Zheng Junjie <873216071@qq.com> Date: Thu, 17 Dec 2020 21:01:15 +0800 Subject: [PATCH 2/6] gnu: Add rust-timer-0.2. --- gnu/packages/crates-io.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 57751cc772..b9cb436935 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -35920,3 +35920,29 @@ formatters with per-field documentation generated for each structure. (description "Toolkit for writing TUI applications") (license license:expat))) + +(define-public rust-timer-0.2 + (package + (name "rust-timer") + (version "0.2.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "timer" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0srhqyp7fr91d1i43aqs7wc6yn1i3kdkh1pm05bicdw961v23m1i")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? + #t + #:cargo-inputs + (("rust-chrono" ,rust-chrono-0.4)))) + (home-page "https://github.com/Yoric/timer.rs") + (synopsis + "A simple timer. Use it to schedule execution of closures after a delay or at a given timestamp.") + (description + "This package provides a simple timer. Use it to schedule execution of closures after a delay or at a given timestamp.") + (license license:mpl2.0))) -- 2.29.2