From patchwork Wed Jun 21 15:48:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin X-Patchwork-Id: 51150 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 4BD6127BBE9; Wed, 21 Jun 2023 16:50:09 +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 1B45D27BBE2 for ; Wed, 21 Jun 2023 16:50:07 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qC04y-00063O-V8; Wed, 21 Jun 2023 11:49:09 -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 1qC04w-00060k-1N for guix-patches@gnu.org; Wed, 21 Jun 2023 11:49:06 -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 1qC04v-0003d7-Oy for guix-patches@gnu.org; Wed, 21 Jun 2023 11:49:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qC04v-0002Lk-KF; Wed, 21 Jun 2023 11:49:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64209] [PATCH 11/14] gnu: Add ocaml-pp. Resent-From: Benjamin Original-Sender: "Debbugs-submit" Resent-CC: julien@lepiller.eu, pukkamustard@posteo.net, guix-patches@gnu.org Resent-Date: Wed, 21 Jun 2023 15:49:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64209 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64209@debbugs.gnu.org Cc: Benjamin , Julien Lepiller , pukkamustard X-Debbugs-Original-Xcc: Julien Lepiller , pukkamustard Received: via spool by 64209-submit@debbugs.gnu.org id=B64209.16873625198810 (code B ref 64209); Wed, 21 Jun 2023 15:49:05 +0000 Received: (at 64209) by debbugs.gnu.org; 21 Jun 2023 15:48:39 +0000 Received: from localhost ([127.0.0.1]:34033 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qC04U-0002Ht-MD for submit@debbugs.gnu.org; Wed, 21 Jun 2023 11:48:39 -0400 Received: from mail.uvy.fr ([146.59.197.40]:46304) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qC04P-0002FH-W1 for 64209@debbugs.gnu.org; Wed, 21 Jun 2023 11:48:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=uvy.fr; s=202105; t=1687362504; bh=eRG/Itv7tQeWU5zlNuvZrtVXWAXEqwHn9+2ulg5A0QY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=nj3kXuDEf99qiOkTKAa+rXWqAGG0W3GWGpYWGC4TBFxBe9Hq7X68gF41B3Rl0ZOiC RnU+izdimdT7viL5T2vRqIGM+StWuDgL/r6YK8PDrlnCrf7qdaas3A74evZjJP8SZD cGjCBzMY+qoB/kfJqgoTOO6HO++3G4Ot3IIDgz7SFQSeT9/fyIIWZitOB5lM119R1d EajGaQbb4DbwhUJa7t2aER4Q4NuiIZ3z6PAsy/l65MBhBIupwHxegff7ieH2owAnog A7geGhkClw6nES94WTMC6DKofkmv0I57JN5Bp7w1H/Ey3O94fRx41bpxUAqGa/6BEk cek885huETLKw== From: Benjamin Date: Wed, 21 Jun 2023 17:48:25 +0200 Message-Id: X-Mailer: git-send-email 2.40.1 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-pp): New variable. --- gnu/packages/ocaml.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index 30eb7e2209..ffc7a9e5e9 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -2015,6 +2015,37 @@ (define-public ocaml5.0-csexp (propagated-inputs `(("ocaml-result" ,ocaml5.0-result))))) +(define-public ocaml-pp + (package + (name "ocaml-pp") + (version "1.1.2") + (home-page "https://github.com/ocaml-dune/pp") + (source (origin + (method git-fetch) + (uri (git-reference + (url home-page) + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0w7gxa85ffbd6jgs6ziarq69yi423f0qkpk05r3abh6lg8smw8pg")))) + (build-system dune-build-system) + (native-inputs (list ocaml-ppx-expect)) + (synopsis "Pretty-printing library") + (description + "This library provides a lean alternative to the Format [1] module of the OCaml +standard library. It aims to make it easy for users to do the right thing. If +you have tried Format before but find its API complicated and difficult to use, +then Pp might be a good choice for you. Pp uses the same concepts of boxes and +break hints, and the final rendering is done to formatter from the Format +module. However it defines its own algebra which some might find easier to work +with and reason about. No previous knowledge is required to start using this +library, however the various guides for the Format module such as this one [2] +should be applicable to Pp as well. [1]: +https://caml.inria.fr/pub/docs/manual-ocaml/libref/Format.html [2]: +http://caml.inria.fr/resources/doc/guides/format.en.html") + (license license:expat))) + (define-public ocaml-migrate-parsetree (package (name "ocaml-migrate-parsetree")