From 5b615b0e0a83abd240e0d45a6d40a5df428f34ec Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 31 Mar 2024 14:35:23 +0300 Subject: [PATCH] gnu: Add rust-tz-rs-0.6. * gnu/packages/crates-io.scm (rust-tz-rs-0.6): New variable. Change-Id: Idb8932248626084641be2594bf1c3ede844d6a51 --- 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 002f8cba21..19f691cff5 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -83441,6 +83441,32 @@ for emulating polymorphism in const fns.") (description "Implementation detail of typewit.") (license license:zlib))) +(define-public rust-tz-rs-0.6 + (package + (name "rust-tz-rs") + (version "0.6.14") + (source + (origin + (method url-fetch) + (uri (crate-uri "tz-rs" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1d720z3p6g65awzv3924dipjnldrdsv6np0h9g7x5yj8r0aip19k")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-test-flags '("--release" "--" + "--skip=timezone::test::test_time_zone_from_posix_tz" + "--skip=src/lib.rs - (line 21)" + "--skip=src/lib.rs - (line 60)") + #:cargo-inputs (("rust-const-fn" ,rust-const-fn-0.4)))) + (home-page "https://github.com/x-hgg-x/tz-rs") + (synopsis + "Rust reimplementation of libc functions localtime, gmtime and mktime") + (description + "This package provides a pure Rust reimplementation of libc functions +localtime, gmtime and mktime.") + (license (list license:expat license:asl2.0)))) + (define-public rust-ubyte-0.10 (package (name "rust-ubyte")