From patchwork Mon Jun 21 10:02:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xinglu Chen X-Patchwork-Id: 30576 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 5C85027BC81; Mon, 21 Jun 2021 11:37:49 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1C7A427BC78 for ; Mon, 21 Jun 2021 11:37:49 +0100 (BST) Received: from localhost ([::1]:56130 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lvHJM-00076w-5U for patchwork@mira.cbaines.net; Mon, 21 Jun 2021 06:37:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36370) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lvGlm-0005Ci-1L for guix-patches@gnu.org; Mon, 21 Jun 2021 06:03:09 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52188) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lvGlj-0000sF-9a for guix-patches@gnu.org; Mon, 21 Jun 2021 06:03:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lvGlj-0003vi-7P for guix-patches@gnu.org; Mon, 21 Jun 2021 06:03:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49150] [PATCH 9/9] gnu: Add ocamlformat. Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 21 Jun 2021 10:03:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49150 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49150@debbugs.gnu.org Received: via spool by 49150-submit@debbugs.gnu.org id=B49150.162426972915000 (code B ref 49150); Mon, 21 Jun 2021 10:03:03 +0000 Received: (at 49150) by debbugs.gnu.org; 21 Jun 2021 10:02:09 +0000 Received: from localhost ([127.0.0.1]:35492 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lvGkq-0003tm-P8 for submit@debbugs.gnu.org; Mon, 21 Jun 2021 06:02:08 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:46628 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lvGkn-0003s6-A3 for 49150@debbugs.gnu.org; Mon, 21 Jun 2021 06:02:05 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1624269725; bh=rqxBwWc761Z8Idjq431E8nAHlJOfZEUN0zqNx+/dWSg=; h=From:To:Subject:In-Reply-To:References:Date; b=QxhQNJwcfV0qxOhjN41ebN8tqGwLIwndrouLSKOWArnClqqvf6uds76eO8F7ZymdT BSYYosdE8LG3tRkvNRKSq3H4HpU2AUxdta1JrdvmIcs/JcxeU+gYTpw/31lG/R5sks YiZ9mi9hELVe1ImDR2secg829aUgC58L35Dis21U= In-Reply-To: References: Message-Id: <6b6c96975b9ad8872f6cb0f39fb53881af4bca2e.1624269361.git.public@yoctocell.xyz> Date: Mon, 21 Jun 2021 12:02:04 +0200 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/ocaml.scm (ocamlformat): New variable. --- gnu/packages/ocaml.scm | 46 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index b78e3ab2fa..ca15b86c8a 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -7103,6 +7103,52 @@ or the list of statically linked libraries with their versions. It supports reporting the version from the version control system during development to get an precise reference of when the executable was built."))) +(define-public ocamlformat + (package + (name "ocamlformat") + (version "0.18.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ocaml-ppx/ocamlformat") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0n6363km8xr81pvyk453n6h2mb0256c5yxw3p1li4dn83f3lwxr1")))) + (build-system dune-build-system) + (arguments + '(#:package "ocamlformat" + ;; FIXME: The expected format is slightly different than what the + ;; produced format is for test/cli/stdin.t + #:tests? #f)) + (propagated-inputs + `(("ocaml-version" ,ocaml-version) + ("ocaml-base" ,ocaml-base) + ("ocaml-cmdliner" ,ocaml-cmdliner) + ("ocaml-dune-build-info" ,ocaml-dune-build-info) + ("ocaml-fix" ,ocaml-fix) + ("ocaml-fpath" ,ocaml-fpath) + ("ocaml-menhir" ,ocaml-menhir) + ("ocaml-menhir-lib" ,ocaml-menhir-lib) + ("ocaml-menhir-sdk" ,ocaml-menhir-sdk) + ("ocaml-odoc" ,ocaml-odoc) + ("ocaml-ppxlib" ,ocaml-ppxlib) + ("ocaml-re" ,ocaml-re) + ("ocaml-stdio" ,ocaml-stdio) + ("ocaml-uuseg" ,ocaml-uuseg) + ("ocaml-uutf" ,ocaml-uutf))) + (native-inputs + `(("ocaml-alcotest" ,ocaml-alcotest) + ("ocaml-ocp-indent" ,ocaml-ocp-indent) + ("ocaml-bisect-ppx" ,ocaml-bisect-ppx))) + (home-page "https://github.com/ocaml-ppx/ocamlformat") + (synopsis "Auto-formatter for OCaml code") + (description "OCamlFormat is a tool to automatically format OCaml code in +a uniform style.") + (license license:expat))) + (define-public ocaml-bigstringaf (package (name "ocaml-bigstringaf")