From patchwork Wed Apr 14 09:13:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: pukkamustard X-Patchwork-Id: 28519 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 3725D27BC75; Wed, 14 Apr 2021 10:17:04 +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_H4,RCVD_IN_MSPIKE_WL,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 EB9A327BC74 for ; Wed, 14 Apr 2021 10:17:03 +0100 (BST) Received: from localhost ([::1]:44428 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWbdv-0000QB-5p for patchwork@mira.cbaines.net; Wed, 14 Apr 2021 05:17:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36142) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWbbE-0005jM-Hq for guix-patches@gnu.org; Wed, 14 Apr 2021 05:14:16 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50249) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lWbbE-0002Bm-6p for guix-patches@gnu.org; Wed, 14 Apr 2021 05:14:16 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lWbbE-0007HO-2f for guix-patches@gnu.org; Wed, 14 Apr 2021 05:14:16 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47768] [PATCH 36/37] gnu: Add ocaml-angstrom. Resent-From: pukkamustard Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 14 Apr 2021 09:14:16 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47768 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47768@debbugs.gnu.org Cc: pukkamustard Received: via spool by 47768-submit@debbugs.gnu.org id=B47768.161839164227714 (code B ref 47768); Wed, 14 Apr 2021 09:14:16 +0000 Received: (at 47768) by debbugs.gnu.org; 14 Apr 2021 09:14:02 +0000 Received: from localhost ([127.0.0.1]:33523 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWbaz-0007Cn-PI for submit@debbugs.gnu.org; Wed, 14 Apr 2021 05:14:02 -0400 Received: from mout02.posteo.de ([185.67.36.66]:37879) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWbah-00078v-Ll for 47768@debbugs.gnu.org; Wed, 14 Apr 2021 05:13:47 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id D0C38240101 for <47768@debbugs.gnu.org>; Wed, 14 Apr 2021 11:13:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1618391617; bh=PVH+Vq9WznGpIQ3mrrB579QYPhZNAVX0veajuE1sGOI=; h=From:To:Cc:Subject:Date:From; b=LtzwJgeNpE/wf9Iv8NQ1o7wyKBY6wU1ROLDhcoltcc8CB+J+Y1nH7RFfNX96pXjSV jlwBbMuD8+17P8pjXPM3MwjKW2Fiy1y2Pua5zzs8S+HTaeSXzERQaViHoymclDQsEe ZUdbNXJodHIo/iCEQ0AVJdQKuBjMbmFiSSthIWwZa7jcKj7FGAXwym8Ub7s+Jd9a0G BGEk8Bzq3P15v0/nrhy8ocmZ4/1fSfqEhrl8Zl2wOsz+kDMjaR6ldDCHoinNeLy6BJ AMe2MCOmQ+tZzT3sfEBvKQ0oHB2IT9b72JzzQwmRL7ciYGX8MgPG5plWJ6I+ZLOxCP ljnd1BRgc1+GA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FKxbj1LCzz9rxS; Wed, 14 Apr 2021 11:13:37 +0200 (CEST) From: pukkamustard Date: Wed, 14 Apr 2021 11:13:02 +0200 Message-Id: <20210414091303.6990-36-pukkamustard@posteo.net> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210414091303.6990-1-pukkamustard@posteo.net> References: <20210414091303.6990-1-pukkamustard@posteo.net> 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 (ocaml-angstrom): New variable. --- gnu/packages/ocaml.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index 9c457d550d..bd01cf1310 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -6833,3 +6833,40 @@ these missing pieces.") "This packages backports new features of the language to older compilers, such as let+.") (license license:expat))) + +(define-public ocaml-angstrom + (package + (name "ocaml-angstrom") + (version "0.15.0") + (home-page "https://github.com/inhabitedtype/angstrom") + (source + (origin + (method git-fetch) + (uri (git-reference + (url home-page) + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1hmrkdcdlkwy7rxhngf3cv3sa61cznnd9p5lmqhx20664gx2ibrh")))) + (build-system dune-build-system) + (arguments + ;; Only build the base angstrom package. + '(#:package "angstrom" + #:test-target ".")) + (propagated-inputs + `(("ocaml-bigstringaf" ,ocaml-bigstringaf))) + (native-inputs + `(("ocaml-alcotest" ,ocaml-alcotest) + ("ocaml-ppx-let" ,ocaml-ppx-let) + ("ocaml-syntax-shims" ,ocaml-syntax-shims))) + (synopsis "Parser combinators built for speed and memory-efficiency") + (description + "Angstrom is a parser-combinator library that makes it easy to write +efficient, expressive, and reusable parsers suitable for high-performance +applications. It exposes monadic and applicative interfaces for composition, +and supports incremental input through buffered and unbuffered interfaces. +Both interfaces give the user total control over the blocking behavior of +their application, with the unbuffered interface enabling zero-copy IO. +Parsers are backtracking by default and support unbounded lookahead.") + (license license:bsd-3)))