unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: "\(unmatched-parenthesis via Guix-patches" via <guix-patches@gnu.org>
To: 52149@debbugs.gnu.org
Cc: "\(unmatched-parenthesis" <paren@disroot.org>
Subject: [bug#52149] [PATCH 12/26] gnu: Add rust-time-0.3.
Date: Mon, 27 Dec 2021 16:50:49 +0000	[thread overview]
Message-ID: <20211227165103.10075-12-paren@disroot.org> (raw)
In-Reply-To: <20211227165103.10075-1-paren@disroot.org>

* gnu/packages/crates-io.scm (rust-time-0.3): New variable.
* gnu/packages/crates-io.scm (rust-time-0.2): Inherit from rust-time-0.3.
* gnu/packages/crates-io.scm (rust-time-0.1): Inherit from rust-time-0.2.
---
 gnu/packages/crates-io.scm | 61 ++++++++++++++++++++++++++++----------
 1 file changed, 45 insertions(+), 16 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index f9bb0e7cca..268caec740 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -54810,8 +54810,44 @@ (define-public rust-tikv-jemalloc-ctl-0.4
 introspection APIs.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-time-0.3
+  (package
+    (name "rust-time")
+    (version "0.3.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "time" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1b943jf54q1667i328x3z73fsjdhcqdqccxckx1nzwwaz9ygxvs1"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-itoa" ,rust-itoa-0.4)
+        ("rust-libc" ,rust-libc-0.2)
+        ("rust-quickcheck" ,rust-quickcheck-1)
+        ("rust-rand" ,rust-rand-0.8)
+        ("rust-serde" ,rust-serde-1)
+        ("rust-time-macros" ,rust-time-macros-0.2))
+       #:cargo-development-inputs
+       (("rust-criterion" ,rust-criterion-0.3)
+        ("rust-criterion-cycles-per-byte" ,rust-criterion-cycles-per-byte-0.1)
+        ("rust-rand" ,rust-rand-0.8)
+        ("rust-serde" ,rust-serde-1)
+        ("rust-serde-test" ,rust-serde-test-1)
+        ("rust-trybuild" ,rust-trybuild-1))))
+    (home-page "https://github.com/time-rs/time")
+    (synopsis "Date and time library")
+    (description "This package provides a date and time library.  It is fully
+interoperable with the standard library, and is mostly compatible with
+@code{#![no_std]}.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-time-0.2
   (package
+    (inherit rust-time-0.3)
     (name "rust-time")
     (version "0.2.23")
     (source
@@ -54821,7 +54857,6 @@ (define-public rust-time-0.2
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "12z95k0005rmyn9pf9v4hq80khsns7y5wfydnjr5jpci2yiyxnmw"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs
        (("rust-const-fn" ,rust-const-fn-0.4)
@@ -54836,27 +54871,21 @@ (define-public rust-time-0.2
        #:cargo-development-inputs
        (("rust-rand" ,rust-rand-0.7)
         ("rust-serde-json" ,rust-serde-json-1)
-        ("rust-standback" ,rust-standback-0.2))))
-    (home-page "https://github.com/time-rs/time")
-    (synopsis "Date and time library")
-    (description "This package provides a date and time library.  It is fully
-interoperable with the standard library, and is mostly compatible with
-@code{#![no_std]}.")
-    (license (list license:expat license:asl2.0))))
+        ("rust-standback" ,rust-standback-0.2))))))
 
 (define-public rust-time-0.1
   (package
+    (inherit rust-time-0.2)
     (name "rust-time")
     (version "0.1.43")
     (source
-      (origin
-        (method url-fetch)
-        (uri (crate-uri "time" version))
-        (file-name (string-append name "-" version ".tar.gz"))
-        (sha256
-         (base32
-          "0f14wrgxj7ya2v4msg5mni7046bsm2angm7cn3pd3yv04gpm12na"))))
-    (build-system cargo-build-system)
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "time" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "0f14wrgxj7ya2v4msg5mni7046bsm2angm7cn3pd3yv04gpm12na"))))
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
-- 
2.34.0





  parent reply	other threads:[~2021-12-27 16:53 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-27 20:42 [bug#52149] [PATCH] core-updates-frozen: Update `rustc` to version 1.56.1 (from 1.54.0) (unmatched-parenthesis via Guix-patches via
2021-11-27 23:16 ` [bug#52149] [PATCH v2] Update Cargo to v0.57.0 along with rustc (unmatched-parenthesis via Guix-patches via
2021-11-27 23:23 ` [bug#52149] [PATCH v3] " (unmatched-parenthesis via Guix-patches via
2021-12-24  6:05   ` [bug#52149] [PATCH] core-updates-frozen: Update `rustc` to version 1.56.1 (from 1.54.0) Maxim Cournoyer
2021-12-24 22:02     ` Parenthesis via Guix-patches via
2021-12-26 20:46       ` Parenthesis via Guix-patches via
2021-12-26 21:12         ` Parenthesis via Guix-patches via
2021-12-25 19:54 ` [bug#52149] [PATCH] feat(gnu packages rust): add 'rust-1.55' (unmatched-parenthesis via Guix-patches via
2021-12-25 20:05 ` [bug#52149] [PATCH] feat(gnu/packages/rust): Add 'rust-1.56' (unmatched-parenthesis via Guix-patches via
2021-12-26 14:48 ` [bug#52149] [PATCH] feat(gnu packages rust): Add 'rust-1.57'; Change 'rust' to 'rust-1.57' (unmatched-parenthesis via Guix-patches via
2021-12-27 12:16   ` Efraim Flashner
2021-12-27 15:29     ` Parenthesis via Guix-patches via
2022-01-17 17:07     ` [bug#52149] [PATCH] core-updates-frozen: Update `rustc` to version 1.56.1 (from 1.54.0) Maxim Cournoyer
2021-12-27 16:50 ` [bug#52149] [PATCH 01/26] gnu: Add rust-cargo-0.58 (unmatched-parenthesis via Guix-patches via
2021-12-27 16:50   ` [bug#52149] [PATCH 02/26] gnu: Remove redundant parts of rust-cargo-0.53 (unmatched-parenthesis via Guix-patches via
2021-12-27 16:50   ` [bug#52149] [PATCH 03/26] gnu: Update rust-crossbeam-utils-0.8 (unmatched-parenthesis via Guix-patches via
2021-12-27 16:50   ` [bug#52149] [PATCH 04/26] gnu: Add rust-cargo-util-0.1 (unmatched-parenthesis via Guix-patches via
2021-12-27 16:50   ` [bug#52149] [PATCH 05/26] gnu: Update rust-curl-0.4; Update rust-curl-sys-0.4 (unmatched-parenthesis via Guix-patches via
2021-12-27 16:50   ` [bug#52149] [PATCH 06/26] gnu: Add rust-duct-0.9 (unmatched-parenthesis via Guix-patches via
2021-12-27 16:50   ` [bug#52149] [PATCH 07/26] gnu: Add rust-env-logger-0.9 (unmatched-parenthesis via Guix-patches via
2021-12-27 16:50   ` [bug#52149] [PATCH 08/26] gnu: Update dependencies of rust-bstr-0.2 (unmatched-parenthesis via Guix-patches via
2021-12-27 16:50   ` [bug#52149] [PATCH 09/26] gnu: Add rust-version-sync-0.9 (unmatched-parenthesis via Guix-patches via
2021-12-27 16:50   ` [bug#52149] [PATCH 10/26] gnu: Update rust-trybuild-1 (unmatched-parenthesis via Guix-patches via
2021-12-27 16:50   ` [bug#52149] [PATCH 11/26] gnu: Add rust-tracing-subscriber-0.3 (unmatched-parenthesis via Guix-patches via
2021-12-27 16:50   ` (unmatched-parenthesis via Guix-patches via [this message]
2021-12-27 16:50   ` [bug#52149] [PATCH 13/26] gnu: Update rust-cargo-metadata-0.6 (unmatched-parenthesis via Guix-patches via
2021-12-27 16:50   ` [bug#52149] [PATCH 14/26] gnu: Change checksum of rust-cargo-platform-0.1 (unmatched-parenthesis via Guix-patches via
2021-12-27 16:50   ` [bug#52149] [PATCH 15/26] gnu: Add rust-generator-0.7 (unmatched-parenthesis via Guix-patches via
2021-12-27 16:50   ` [bug#52149] [PATCH 16/26] gnu: Update rust-jobserver-0.1 (unmatched-parenthesis via Guix-patches via
2021-12-27 16:50   ` [bug#52149] [PATCH 17/26] gnu: Update rust-itertools-0.10 (unmatched-parenthesis via Guix-patches via
2021-12-27 16:50   ` [bug#52149] [PATCH 18/26] gnu: Add rust-matchers-0.1 (unmatched-parenthesis via Guix-patches via
2021-12-27 16:50   ` [bug#52149] [PATCH 19/26] gnu: Add rust-rustfix-0.6 (unmatched-parenthesis via Guix-patches via
2021-12-27 16:50   ` [bug#52149] [PATCH 20/26] gnu: Update rust-os-info-3 (unmatched-parenthesis via Guix-patches via
2021-12-27 16:50   ` [bug#52149] [PATCH 21/26] gnu: Add rust-similar-0.4 (unmatched-parenthesis via Guix-patches via
2021-12-27 16:50   ` [bug#52149] [PATCH 22/26] gnu: Add rust-loom-0.5 (unmatched-parenthesis via Guix-patches via
2021-12-27 16:51   ` [bug#52149] [PATCH 23/26] gnu: Add rust-opener-0.5 (unmatched-parenthesis via Guix-patches via
2021-12-27 16:51   ` [bug#52149] [PATCH 24/26] gnu: Update rust-socket2-0.4 (unmatched-parenthesis via Guix-patches via
2021-12-27 16:51   ` [bug#52149] [PATCH 25/26] gnu: Update rust-tar-0.4 (unmatched-parenthesis via Guix-patches via
2021-12-27 16:51   ` [bug#52149] [PATCH 26/26] gnu: Add rust-time-macros-0.2 (unmatched-parenthesis via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211227165103.10075-12-paren@disroot.org \
    --to=guix-patches@gnu.org \
    --cc=52149@debbugs.gnu.org \
    --cc=paren@disroot.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).