From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id lVziFCQ/CmHskwAAgWs5BA (envelope-from ) for ; Wed, 04 Aug 2021 09:17:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id QNTqDyQ/CmHwEgAAbx9fmQ (envelope-from ) for ; Wed, 04 Aug 2021 07:17:56 +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 7FC0370C0 for ; Wed, 4 Aug 2021 09:17:55 +0200 (CEST) Received: from localhost ([::1]:55814 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mBBA2-00048b-GA for larch@yhetil.org; Wed, 04 Aug 2021 03:17:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46178) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBB9Q-0002kO-Oq for guix-patches@gnu.org; Wed, 04 Aug 2021 03:17:16 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59142) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mBB9Q-0004xg-FU for guix-patches@gnu.org; Wed, 04 Aug 2021 03:17:16 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mBB9Q-0002pV-As for guix-patches@gnu.org; Wed, 04 Aug 2021 03:17:16 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49867] [PATCH 15/29] gnu: Add ocaml-ptime. Resent-From: pukkamustard Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 04 Aug 2021 07:17:16 +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: 49867@debbugs.gnu.org Cc: pukkamustard Received: via spool by 49867-submit@debbugs.gnu.org id=B49867.162806143410837 (code B ref 49867); Wed, 04 Aug 2021 07:17:16 +0000 Received: (at 49867) by debbugs.gnu.org; 4 Aug 2021 07:17:14 +0000 Received: from localhost ([127.0.0.1]:42444 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBB9N-0002oW-Qn for submit@debbugs.gnu.org; Wed, 04 Aug 2021 03:17:14 -0400 Received: from mout01.posteo.de ([185.67.36.65]:34515) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBB9D-0002ib-Km for 49867@debbugs.gnu.org; Wed, 04 Aug 2021 03:17:06 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 35483240026 for <49867@debbugs.gnu.org>; Wed, 4 Aug 2021 09:16:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1628061416; bh=WwpNJpB1mBmAwL4krsSs/F29aRj04MTm+NQ545BjxM0=; h=From:To:Cc:Subject:Date:From; b=aHcd+tR4yfnUbc7L/PLSu92nt3uno70PCTXZy5Otbus4VSPW5HPXy/l4cCZOYdiaV AfQtxMDYyJXWvArxc07X+yj9ia/DjVqtQNJvZ1D1YgLHfVU7E8wE/m0YyMcPqpv9FW dv4BS595hILYcyIUi3JztNeXtjJMa+yYYwYDz8zxTsadR0zu8dKzd+YeEPpiQ2UBt1 OeTTvmWaoYyMRhXfFuKVaZ0jj2rb24rybLSB5SGVSpkFUavvSn7Ps/j5NA1UKyZ2vq d1T/P2CoGavai1hhLIzfr5XdMW0XWleqYAa3dHJ+eMu8CU2FmusCw+tdYcSop+L69n 19hmLus30qgXQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GfjjM50FBz6tmF; Wed, 4 Aug 2021 09:16:55 +0200 (CEST) From: pukkamustard Date: Wed, 4 Aug 2021 07:15:31 +0000 Message-Id: <20210804071545.21181-15-pukkamustard@posteo.net> In-Reply-To: <20210804071545.21181-1-pukkamustard@posteo.net> References: <20210804071545.21181-1-pukkamustard@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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=1628061475; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: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=hI/8yhYXS9oGMBkP//AHbPAqq7spzt0HC7HbDzQRPbY=; b=dbJAAsRs5ZlIYie0kv8jyM5Mw5nenm0xVNYabXuvWve5Tgwb/5UAVkkwf1lVdFDLqlZvpd eQsl8VDPq3jaO0PpjPBytWV6EWMJmKL9KqHkdtXK5T8zCO/pfXmpNzYrYWB/WZ7CbZnCZr 6MtCinp4qxLDA08C9kNBo3B9WaDroBP7kqGDYwqOrHf0V25ZxYwoz8n8psG2KV66cMCE2J Qx+JsGzgkwQRT9Oy26QkNfpSyPqTDnDnB9i/cq8ZfFbVGNhcmoyauNmrTFO7vNKo+klLNq XspKVYxYmoVWJspLby0Ux1hmdTrZsClEvyl1mOeQ6m/zubDQ6rxHNlWAoAgeZQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628061475; a=rsa-sha256; cv=none; b=Ifl5FAsAgwMPu1uyGtyBTm/SFp019Unf6P+4URv4/Jr89gt7XkltI6AYFFo1vAlcPi1+hk MP7yzlTW4cOkyPPnVk76hBhTU6vPyJxcpdo2OmG/anrSC9KtM6f/7ZItQJIAmTYMXFrKze Atu2FbKXX7SSPSzi6BT5PSJG35tBFlCC+Zlzx47jCOx4+8hdRcP/56eXLQc9Rgv8MLW4Ku AoWDuHuVXCd9hTAs0c3GA3iRYQSpvAEEa7D336ydeRlvg9G0+yLZxUbXozX0VUVuNYNlcm xtpU3CDa0JpAii6h5Fs9XQi+It3LFEZa57Ac4bBAI6ce6kISa9rfUFCYHPAk8Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=aHcd+tR4; 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.68 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=aHcd+tR4; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (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: 7FC0370C0 X-Spam-Score: 3.68 X-Migadu-Scanner: scn1.migadu.com X-TUID: WfGkJwpHH6u+ * 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."))) +(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.tbz") + (sha256 + (base32 + "1fxq57xy1ajzfdnvv5zfm7ap2nf49znw5f9gbi4kb9vds942ij27")))) + (build-system ocaml-build-system) + (arguments + `(#:tests? #f + #: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 pure +OCaml. It provides a type to represent a well-defined range of POSIX +timestamps with picosecond precision, conversion with date-time values, +conversion with RFC 3339 timestamps and pretty printing to a human-readable, +locale-independent representation. + +The additional Ptime_clock library provides access to a system POSIX clock and +to the system's current time zone offset. + +Ptime is not a calendar library. + +Ptime depends on the @code{ocaml-result} compatibility package. Ptime_clock +depends on your system library. Ptime_clock's optional JavaScript support +depends on @code{js-of-ocaml}.") + (license license:isc))) + (define-public js-of-ocaml (package (name "js-of-ocaml") -- 2.32.0