From patchwork Thu Nov 9 16:26:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 56152 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 60C0527BBEA; Thu, 9 Nov 2023 16:29:26 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,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 E518C27BBE2 for ; Thu, 9 Nov 2023 16:29:25 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r17tM-00084o-3t; Thu, 09 Nov 2023 11:28:28 -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 1r17tJ-00082E-O4 for guix-patches@gnu.org; Thu, 09 Nov 2023 11:28:25 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r17tJ-0006Zn-G0 for guix-patches@gnu.org; Thu, 09 Nov 2023 11:28:25 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r17tu-0004f1-Oi; Thu, 09 Nov 2023 11:29:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67019] [PATCH 06/16] gnu: Add ocaml-ppx-gen-rec. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: philip@philipmcgrath.com, julien@lepiller.eu, pukkamustard@posteo.net, guix-patches@gnu.org Resent-Date: Thu, 09 Nov 2023 16:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67019 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67019@debbugs.gnu.org Cc: Philip McGrath , Philip McGrath , Julien Lepiller , pukkamustard X-Debbugs-Original-Xcc: Philip McGrath , Julien Lepiller , pukkamustard Received: via spool by 67019-submit@debbugs.gnu.org id=B67019.169954728617726 (code B ref 67019); Thu, 09 Nov 2023 16:29:02 +0000 Received: (at 67019) by debbugs.gnu.org; 9 Nov 2023 16:28:06 +0000 Received: from localhost ([127.0.0.1]:48504 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r17sz-0004bi-KR for submit@debbugs.gnu.org; Thu, 09 Nov 2023 11:28:06 -0500 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:52397) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r17sv-0004a5-HP for 67019@debbugs.gnu.org; Thu, 09 Nov 2023 11:28:02 -0500 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 91FA63200B61; Thu, 9 Nov 2023 11:27:16 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 09 Nov 2023 11:27:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= philipmcgrath.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1699547236; x=1699633636; bh=uBPGilGjd9 Aw7cXVuG4eXD+LGRM9MnxL+qpQY+GT7EU=; b=OizVtL385PLBBckDfGpDq0DTvS P5dmAbiGcFDmpad2qqw1fwUjGJHDV1ziyXtVp2qf/G6QCISUpljjdWpQqggmPMSr ayIr4FJncOUxcwrouGunJWJ8KKNzJOCKZ9oZaU9k9QLe6uDpAyoV2ZN5ZLi7xjPQ ZQsXjhx6Ok0f3b2Nnx6+XNh+kNR0BOtB+dWWO1Xb7fSl0rjohxCChPlUTRFD0qct cfntzeK4MLMfzjMDkeut/HW7l4RUz7l120m6q35eKcJIFl1hKc5HisMRsnlbPPhI lCaJl9aUIwkKprOHlguJnr/aEIeuQVmAPp4/Y0JM9PFYgMQYRfsrBMUd5WlQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1699547236; x= 1699633636; bh=uBPGilGjd9Aw7cXVuG4eXD+LGRM9MnxL+qpQY+GT7EU=; b=U 5WO2aJGq0pOmHNTGsS10DTa9SQI0WT9lWxe+jWzAg1eP8grTABNX/EP7URNCeY3Y VhwMZCgo4KsKs/kWN0sw56ZluZuHwZqrsDr/BVrmVKkKSVlIjJTS7qNgzyMDfhAW n49Br2FZZERQKNYEsUcQEtMTLVI8yINnqsLFYPHyRy0uBl+F9Q6X7WjuMtm+nZSr PNP9RnnA5tCscHEyoN6pf6MkNJI3cqvjwcSk37GVgNmYKLWU6QzQhdmpkHryUlIH KdWzYf2QEkroAf48R4zbWlewBseB5g0D/iCe+M40n8XIy3wLDtTghf1ZoUDqS9Hb E6C1K4Ol0yuePDqxuE3sQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedruddvuddgkeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtke ertdertddtnecuhfhrohhmpefrhhhilhhiphcuofgtifhrrghthhcuoehphhhilhhiphes phhhihhlihhpmhgtghhrrghthhdrtghomheqnecuggftrfgrthhtvghrnhepudehvdefje etfffffeektdehtdetudfhtdfhuddtueeukefhveehhfehvdfhheffnecuffhomhgrihhn pehgihhthhhusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehphhhilhhiphesphhhihhlihhpmhgtghhrrghthhdrtghomh X-ME-Proxy: Feedback-ID: i2b1146f3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 9 Nov 2023 11:27:15 -0500 (EST) From: Philip McGrath Date: Thu, 9 Nov 2023 11:26:28 -0500 Message-ID: <68e5bf3706131231c8c9bb8736eb944bda35cd12.1699540553.git.philip@philipmcgrath.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 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-ppx-gen-rec): New variable. --- gnu/packages/ocaml.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index f9a3932d18..b12c12fad5 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -6722,6 +6722,34 @@ (define-public ocaml-ppx-deriving on type definitions, and a set of useful plugins for common tasks.") (license license:expat))) +(define-public ocaml-ppx-gen-rec + (package + (name "ocaml-ppx-gen-rec") + (version "2.0.0") + (source (origin + (method url-fetch) + (uri + (string-append "https://github.com/flow/ocaml-ppx_gen_rec/" + "releases/download/v" + version + "/ppx_gen_rec-v" version ".tbz")) + (sha256 + (base32 + "0ncy7ps0w3cnb3nk6y1j4v4g60rs500qwv1daw3a9n7n8kjj6qzy")))) + (build-system dune-build-system) + (propagated-inputs (list ocaml-ppxlib)) + (native-inputs (list ocaml-ppx-deriving)) + (properties `((upstream-name . "ppx_gen_rec"))) + (home-page "https://github.com/flow/ocaml-ppx_gen_rec") + (synopsis "Ppx rewriter for recursive module expressions") + (description + "This package provides a ppx rewriter that transforms a recursive module +expression into a struct. In a recursive module expression, the struct can be +derived from the signature automatically by the compiler. This package does +the same thing, but doing it this way allows @code{ppx_deriving} to transform +the signature and the struct separately.") + (license license:expat))) + (define-public ocaml-ppx-derivers (package (name "ocaml-ppx-derivers")