From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +E7cBLQIDGE5/gAAgWs5BA (envelope-from ) for ; Thu, 05 Aug 2021 17:50:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id GHN+ALQIDGFeFAAAB5/wlQ (envelope-from ) for ; Thu, 05 Aug 2021 15:50:12 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5E3758EFD for ; Thu, 5 Aug 2021 17:50:11 +0200 (CEST) Received: from localhost ([::1]:57384 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mBfdK-0008Gz-AF for larch@yhetil.org; Thu, 05 Aug 2021 11:50:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51176) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBfdC-0008FZ-HK for guix-patches@gnu.org; Thu, 05 Aug 2021 11:50:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36601) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mBfdC-0004Xm-8a for guix-patches@gnu.org; Thu, 05 Aug 2021 11:50:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mBfdB-0001CB-JS for guix-patches@gnu.org; Thu, 05 Aug 2021 11:50:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49867] [PATCH 15/29] gnu: Add ocaml-ptime. Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 05 Aug 2021 15:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49867 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: pukkamustard , 49867@debbugs.gnu.org Cc: pukkamustard Received: via spool by 49867-submit@debbugs.gnu.org id=B49867.16281785474528 (code B ref 49867); Thu, 05 Aug 2021 15:50:01 +0000 Received: (at 49867) by debbugs.gnu.org; 5 Aug 2021 15:49:07 +0000 Received: from localhost ([127.0.0.1]:48146 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBfcI-0001Ay-Sz for submit@debbugs.gnu.org; Thu, 05 Aug 2021 11:49:07 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:35138 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBfcH-0001AT-ER for 49867@debbugs.gnu.org; Thu, 05 Aug 2021 11:49:06 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1628178536; bh=hVm2SdZEr9M1NIAhF1Bp0RRd++P3YiM0ooSQh4QypVs=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=hRtUfwBSKbRI/h/uyclQ1GdYM6NwxaTpqHfQ4LjXKv1iJbfKrEByFo1zRHz6LxSHa wbZtH4UWyOIdtApZU+xuU3a/iu51gZcLGlUL8K+yoi/TCTwkI/I8e59h3kDfsPzNfh jLUIUIIrxxtwtHfChAM5DKI1Cb3jnigCBBoPwT/0= In-Reply-To: <20210804071545.21181-15-pukkamustard@posteo.net> References: <20210804071545.21181-1-pukkamustard@posteo.net> <20210804071545.21181-15-pukkamustard@posteo.net> Date: Thu, 05 Aug 2021 17:48:55 +0200 Message-ID: <87r1f7ki3c.fsf@yoctocell.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1628178611; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=NEUrQl997u4M5kuFLXM2q/5c02vAe54ln3SkEMZY52g=; b=bbOQNAEedqLKgJgvC1INbs4UhaQeYtUYQ8ViIS5LJpMaAq4rlKTv7jSdPY7DGrFwddu0Gx jgNGEi6Zs5o9Ds0NI2DfCa/g2je5B5dtOKuziN5Z0duo9yGPhV3RMFdmXYujdpuPJV4KDK ra/2EJdEgsIjx130MmwRpV8Qcc/UHqfjE+rSarx7aeCRXfHcI/+K0rM9AScgvX2kTDw0fb FQ6rbLhwLlCQyHBcDhukyczUFAmsmAKXJEFAtMsZ9fex+jZShVD3vrUUqmpEyXodEe3RdF f5naZwjoF8CF62qjiYzfhi1dLMLg13uykjwiJQmRFi6Yr49Ed7R6zIyws9XFGQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628178611; a=rsa-sha256; cv=none; b=Sy7u90/6gVc/YMdEK+r5uAIQxfSy/N8M/LRIL/onZm8wSVo1fYBjLCFYkkGKQErxIMlwfg Yib1Va+hgi5YynD2apxHml4R9aO/s/adnmFPfOOsgKbCdP5SqZMX/zAwx6MS/bX9TlRRpe w4cimKxwb2LY1pWgCjfVf/mo4qEl9D+4Qejp9Zal/cELLyEBnghZetc6qbcqBD0SMHCKeD Wr+nrTajmursg3zK4vLyEQ+dnRI/k4PgW0LO58df7FG3UHZVLI3EEECtcvWRXvhldz6BpG pCMtFRCB/BR5aUz+EK5HW6oLVpZNlkqEijOJ8chUgMCWPTi7RxlM/JVGI60Xeg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=hRtUfwBS; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -3.42 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=hRtUfwBS; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 5E3758EFD X-Spam-Score: -3.42 X-Migadu-Scanner: scn1.migadu.com X-TUID: 4TlPB0Dx6v+w --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Wed, Aug 04 2021, pukkamustard wrote: > * gnu/packages/ocaml.scm (ocaml-ptime): New variable. > --- > gnu/packages/ocaml.scm | 42 ++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 42 insertions(+) > > diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm > index a34c844059..ab385eb26f 100644 > --- a/gnu/packages/ocaml.scm > +++ b/gnu/packages/ocaml.scm > @@ -7487,6 +7487,48 @@ number generator interface, and implementations.")= )) > (description "@code{ocaml-mirage-crypto-pk} provides public-key > cryptography (RSA, DSA, DH) for OCaml."))) >=20=20 > +(define-public ocaml-ptime > + (package > + (name "ocaml-ptime") > + (version "0.8.5") > + (source > + (origin > + (method url-fetch) > + (uri "https://erratique.ch/software/ptime/releases/ptime-0.8.5.tb= z") Use (string-append "https://erratique.ch..." version ".tbz") to make it easier to update the package in the future. > + (sha256 > + (base32 > + "1fxq57xy1ajzfdnvv5zfm7ap2nf49znw5f9gbi4kb9vds942ij27")))) > + (build-system ocaml-build-system) > + (arguments > + `(#:tests? #f What=E2=80=99s the reason for disabling tests? > + #:build-flags (list "build" "--with-js_of_ocaml" "false") > + #:phases > + (modify-phases %standard-phases > + (delete 'configure)))) > + (propagated-inputs > + `(("ocaml-result" ,ocaml-result))) > + (native-inputs > + `(("ocamlbuild" ,ocamlbuild) > + ("ocaml-topkg" ,ocaml-topkg) > + ("opam" ,opam))) > + (home-page "https://erratique.ch/software/ptime") > + (synopsis "POSIX time for OCaml") > + (description "Ptime has platform independent POSIX time support in p= ure > +OCaml. It provides a type to represent a well-defined range of POSIX ^ Double spacing. :-) > +timestamps with picosecond precision, conversion with date-time values, > +conversion with RFC 3339 timestamps and pretty printing to a human-reada= ble, > +locale-independent representation. > + > +The additional Ptime_clock library provides access to a system POSIX clo= ck and > +to the system's current time zone offset. > + > +Ptime is not a calendar library. Not really sure if this sentence is necessary. I think the previous sentences has hade it pretty clear that it a time and date library. > +Ptime depends on the @code{ocaml-result} compatibility package. Ptime_cl= ock > +depends on your system library. Ptime_clock's optional JavaScript support > +depends on @code{js-of-ocaml}.") This two sentences are probably also not necessary for users of the package. It should be the packager=E2=80=99s job to specify the dependenci= es. :-) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJJBAEBCAAzFiEEAVhh4yyK5+SEykIzrPUJmaL7XHkFAmEMCGcVHHB1YmxpY0B5 b2N0b2NlbGwueHl6AAoJEKz1CZmi+1x5OTcP/2SfTwjLMPkRMzk38kwV1MsUg7kL yJqhrshC58fQWbhVNyJS/CPUDTQBlZMC5sOhNnxfDv7V1R78GKqlq+IPXs/awGLG LsTtic1BTbnotUON4FoGRhY9qVQIDFB8KH4F9lvY9N9srs34oXMNzjYT2gVEvihB M85KrXPHF9L8xJPPIqGEojQMD9jyShFpDvWuxQvG2sVMiNwtgdRTUazn9B4krD76 Ph3vPQa9mrHyfTZXOs+RQcwF9HYFIfYUAx/KcYkwGJigAxyOJuecAR1Ql7kFYeLV WgB5uhyl+yhWS9avNHlSZkBD7WWN7rr3PHTUHw3OG5mOai2zf81AjVpGdKjaP2q4 4nXS6C/NrpoldVbYyWYrPASWVEgQqdmvK1eCepBj75laZ5tfuNmkYGuJOoEyqMTm GR4oqrtMPnksOEk/1GfYO6a43lY9+I89O/Bw2iOKmIeqKIwRVbn/fibnh3Dmy2C9 sMS3KhV+KWuAzQS3fHcVTQ8iH+xS+X0mDzT68UKAQNJw/3LZZuS7aoLY067T6aBf nRYqhj1rrBpMxitYXroc5kIGcOwse2RhoAY8jJAlOSCS1rVQ2pNHprMVbHSGifF4 v8pdScOzm6ePyR4XyAXHKivIpVs/hiM2WZmbtorpI4YJVi3OJQjbuKsb3b8HZZM1 0ltSpjIxQi4G+Xz3 =5ofH -----END PGP SIGNATURE----- --=-=-=--