From patchwork Mon Jan 9 00:35:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Csepp X-Patchwork-Id: 45983 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id E2E4327BBEE; Mon, 9 Jan 2023 00:38:51 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 8645B27BBEB for ; Mon, 9 Jan 2023 00:38:51 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pEgAA-0006A8-73; Sun, 08 Jan 2023 19:37:18 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pEg9w-0005w3-Oh for guix-patches@gnu.org; Sun, 08 Jan 2023 19:37:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pEg9w-0004SS-By for guix-patches@gnu.org; Sun, 08 Jan 2023 19:37:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pEg9w-0001tP-8l for guix-patches@gnu.org; Sun, 08 Jan 2023 19:37:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60673] [PATCH 19/39] gnu: Add ocaml-ptime. Resent-From: Csepp Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 09 Jan 2023 00:37:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60673 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60673@debbugs.gnu.org Cc: raingloom X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16732245776924 (code B ref -1); Mon, 09 Jan 2023 00:37:04 +0000 Received: (at submit) by debbugs.gnu.org; 9 Jan 2023 00:36:17 +0000 Received: from localhost ([127.0.0.1]:35136 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEg9A-0001nU-Gm for submit@debbugs.gnu.org; Sun, 08 Jan 2023 19:36:16 -0500 Received: from lists.gnu.org ([209.51.188.17]:54484) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pEg96-0001lt-Se for submit@debbugs.gnu.org; Sun, 08 Jan 2023 19:36:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pEg95-0005Re-9W for guix-patches@gnu.org; Sun, 08 Jan 2023 19:36:12 -0500 Received: from mx0.riseup.net ([198.252.153.6]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pEg93-00046a-GR for guix-patches@gnu.org; Sun, 08 Jan 2023 19:36:11 -0500 Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx0.riseup.net (Postfix) with ESMTPS id 4Nqw3X4F8Rz9s7b for ; Mon, 9 Jan 2023 00:36:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1673224568; bh=4S886WQowC+0zlaaECJGkHSSTaJxFjXO7Jnn5NjSo20=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=F8gEyukKRQ7T2KW/Cx0h2HFYFIR/FIG5OhveRIUIT2BNn0os+fF0CRCAaoGtbEyF3 jEGunhyzIyMP9uf7I6qCQD4aSlB9EBYKIxeWVzx4CpxWwTfNCOx1Pbh5lYtuzneRN/ bZ1RBmT19r/r80O/J1EApL7z/qaojK8b0lEZTpWw= X-Riseup-User-ID: D85F22F2B38815CC7EC39C5AF7782FE43A04EB4E37A37313048A24DEE260B901 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4Nqw3W4yzDz5vXJ; Mon, 9 Jan 2023 00:36:07 +0000 (UTC) From: Csepp Date: Mon, 9 Jan 2023 01:35:09 +0100 Message-Id: <20230109003529.23375-19-raingloom@riseup.net> In-Reply-To: <20230109003529.23375-1-raingloom@riseup.net> References: <20230109003529.23375-1-raingloom@riseup.net> MIME-Version: 1.0 Received-SPF: pass client-ip=198.252.153.6; envelope-from=raingloom@riseup.net; helo=mx0.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From: raingloom * gnu/packages/ocaml.scm (ocaml-ptime): New variable. --- gnu/packages/ocaml.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index 70129a5b6b..52692b40bf 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -3855,6 +3855,38 @@ (define-public ocaml-mirage-clock epoch.") (license license:isc))) +(define-public ocaml-ptime + (package + (name "ocaml-ptime") + ;; TODO 1.1.0 has some issues, so for now we are stuck with 0.8.5 + (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 + `(#:build-flags (list "build" "--with-js_of_ocaml" "true" "--tests" "true") + #:phases + (modify-phases %standard-phases + (delete 'configure)))) + (propagated-inputs + (list ocaml-result js-of-ocaml)) + (native-inputs + (list ocaml-findlib ocamlbuild ocaml-topkg opam)) + (home-page "https://erratique.ch/software/ptime") + (synopsis "POSIX time for OCaml") + (description + "Ptime offers 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.") + (license license:isc))) + (define-public ocaml-mirage-unix (package (name "ocaml-mirage-unix")