From patchwork Sat Jul 1 17:43:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Anders_=C3=85gren_Thun=C3=A9?= X-Patchwork-Id: 51496 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 B9C0B27BBE9; Sun, 2 Jul 2023 08:33:59 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable 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 38CDA27BBE2 for ; Sun, 2 Jul 2023 08:33:58 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qFrZy-0005uw-1l; Sun, 02 Jul 2023 03:33:06 -0400 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 1qFrZv-0005tv-NA for guix-patches@gnu.org; Sun, 02 Jul 2023 03:33:04 -0400 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 1qFrZv-00022Q-EJ for guix-patches@gnu.org; Sun, 02 Jul 2023 03:33:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qFrZv-0008Ez-AB for guix-patches@gnu.org; Sun, 02 Jul 2023 03:33:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64400] [PATCH 1/5] gnu: Add ocaml-ISO8601. References: <20230630172616.23296-1-anders@aathn.org> In-Reply-To: <20230630172616.23296-1-anders@aathn.org> Resent-From: Anders =?utf-8?b?w4VncmVuIFRodW7DqQ==?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 02 Jul 2023 07:33:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64400 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64400@debbugs.gnu.org Cc: Anders =?utf-8?b?w4VncmVuIFRodW7DqQ==?= Received: via spool by 64400-submit@debbugs.gnu.org id=B64400.168828317731597 (code B ref 64400); Sun, 02 Jul 2023 07:33:03 +0000 Received: (at 64400) by debbugs.gnu.org; 2 Jul 2023 07:32:57 +0000 Received: from localhost ([127.0.0.1]:59106 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFrZo-0008DS-NP for submit@debbugs.gnu.org; Sun, 02 Jul 2023 03:32:57 -0400 Received: from mail-40136.proton.ch ([185.70.40.136]:47191) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFed3-0000U3-0S for 64400@debbugs.gnu.org; Sat, 01 Jul 2023 13:43:27 -0400 Date: Sat, 01 Jul 2023 17:43:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aathn.org; s=protonmail; t=1688233398; x=1688492598; bh=yj5o4pRECWyk1kdaZ7tBmF9kZsNKmeSWXsIZF2Mzay0=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=YBKRcv/Gkb6aj+fXDBv950xi4ngkNuJUIzcV2pm4P5NVYkJzRhELyRwoLSLKmakpR XV7HYB0wSzQ+4GTFlaxSyiXXIyHwq+JoCOABDnwaLV2TiT7s6LyQIvRTSeEIsFVgdx sZ4z31nEPTOqOod9qL3wjeyZ7qLGNOkXzyfoocjuD9VJx9TzfMPhf0+VvRvSbmK7dg o9A7sSKChp3GaD+8Dh0D4Aqz7zSRXtH5gizDosCSnO3f+sn8uX0Sn3OfUD7dFezacN EVZMy8hShNRb/1iQRvfQZ2221qi3yjXdiqPD6K8Pl1R7Q3xmvTSdOvp40n9IavEVcJ GR+xqSST6hA7Q== From: Anders =?utf-8?b?w4VncmVuIFRodW7DqQ==?= Message-ID: <20230701174258.21019-1-anders@aathn.org> Feedback-ID: 38242901:user:proton MIME-Version: 1.0 X-Mailman-Approved-At: Sun, 02 Jul 2023 03:32:54 -0400 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 * gnu/packages/ocaml.scm (ocaml-ISO8601): New variable. --- gnu/packages/ocaml.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index ab0aa0574a..abdf09bdc1 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -29,6 +29,7 @@ ;;; Copyright © 2022 Garek Dyszel ;;; Copyright © 2023 Csepp ;;; Copyright © 2023 Foundation Devices, Inc. +;;; Copyright © 2023 Anders Ågren Thuné ;;; ;;; This file is part of GNU Guix. ;;; @@ -2699,6 +2700,32 @@ (define-public ocaml-ppx-tools syntactic tools.") (license license:expat))) +(define-public ocaml-ISO8601 + ;; NOTE: Using commit from master branch as 0.2.6 uses the Pervasives + ;; module in its tests, which is incompatible with OCaml 5.0. + (let ((revision "0") + (commit "ad50cb01061405623c834608c26f1ef2d44f8340")) + (package + (name "ocaml-ISO8601") + (version (git-version "0.2.6" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ocaml-community/ISO8601.ml") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1lvjrxz66b7dv40cbl8xyfv3x8nmwj0m5ipfvxc37mjaaf3xrr5g")))) + (build-system dune-build-system) + (propagated-inputs (list ocaml-odoc)) + (native-inputs (list ocaml-ounit)) + (home-page "https://github.com/ocaml-community/ISO8601.ml/") + (synopsis "ISO 8601 and RFC 3339 date parsing for OCaml") + (description + "OCaml parser and printer for date-times in ISO8601 and RFC 3339") + (license license:expat)))) + (define-public ocaml-parmap (package (name "ocaml-parmap")