From patchwork Mon Aug 9 07:01:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: pukkamustard X-Patchwork-Id: 31940 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 5AA4827BC78; Mon, 9 Aug 2021 08:03: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 25F6127BC6B for ; Mon, 9 Aug 2021 08:03:49 +0100 (BST) Received: from localhost ([::1]:46228 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mCzK8-0006zN-6B for patchwork@mira.cbaines.net; Mon, 09 Aug 2021 03:03:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56732) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mCzJO-0005s4-Q0 for guix-patches@gnu.org; Mon, 09 Aug 2021 03:03:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44002) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mCzJO-0000xl-9G for guix-patches@gnu.org; Mon, 09 Aug 2021 03:03:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mCzJN-0003gx-VY for guix-patches@gnu.org; Mon, 09 Aug 2021 03:03:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49867] [PATCH v2 19/31] gnu: Add ocaml-asn1-combinators. Resent-From: pukkamustard Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 09 Aug 2021 07:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49867 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49867@debbugs.gnu.org Cc: pukkamustard Received: via spool by 49867-submit@debbugs.gnu.org id=B49867.162849254014053 (code B ref 49867); Mon, 09 Aug 2021 07:03:01 +0000 Received: (at 49867) by debbugs.gnu.org; 9 Aug 2021 07:02:20 +0000 Received: from localhost ([127.0.0.1]:55526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCzIh-0003ea-No for submit@debbugs.gnu.org; Mon, 09 Aug 2021 03:02:19 -0400 Received: from mout01.posteo.de ([185.67.36.65]:45281) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCzIH-0003YD-U5 for 49867@debbugs.gnu.org; Mon, 09 Aug 2021 03:01:54 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 584B9240029 for <49867@debbugs.gnu.org>; Mon, 9 Aug 2021 09:01:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1628492508; bh=rfeWpkvNgqWB5RB19T7JhV6b6jT6IctpS367USC2jbs=; h=From:To:Cc:Subject:Date:From; b=hxfiV6m7P9vmf6EhRleog/k+S7D8qZ4tsgKyuRAlU++UTQHaLisTCPnzTSTWpm0+0 LSTwfCbG7Jk37r1kEj7CtMJfPq/lVbZq/4kCr0g3ntJaa0iLKPaHa2s0nOACISQXCp 93B1JsEzsdcynjccR08vfOjfD3d0hvEuukTNPj4qmmqfHRxvbuXtSZNM6RjSWQlIG1 xQt1LGV2SsWpjG2a6DCk/0J5ZiRPSKpVxEej8mczeE7qD/IbLPXd7hQ5ALjtVPZPEW phLl355berqHkD9AjSaUfKJpLLR4HWoSTrve13v5qbnAWFP1O6c9eFKTpzGpdNc8EZ 7/evTJzHEWM9w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Gjn7b5jwlz6tmK; Mon, 9 Aug 2021 09:01:47 +0200 (CEST) From: pukkamustard Date: Mon, 9 Aug 2021 07:01:12 +0000 Message-Id: <20210809070124.25641-19-pukkamustard@posteo.net> In-Reply-To: <20210809070124.25641-1-pukkamustard@posteo.net> References: <86pmun5cp5.fsf@posteo.net> <20210809070124.25641-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-asn1-combinators): New variable. --- gnu/packages/ocaml.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index 7af276a517..de3ae3eb9d 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -7758,6 +7758,41 @@ The additional Ptime_clock library provides access to a system POSIX clock and to the system's current time zone offset.") (license license:isc))) +(define-public ocaml-asn1-combinators + (package + (name "ocaml-asn1-combinators") + (version "0.2.5") + (home-page "https://github.com/mirleft/ocaml-asn1-combinators") + (source + (origin + (method git-fetch) + (uri (git-reference + (url home-page) + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0n7afzyqc3b7g7rl54ccw31431h6g145zvpzg34q0y4m5gzjv5h5")))) + (build-system dune-build-system) + (arguments `(#:test-target ".")) + (propagated-inputs + `(("ocaml-cstruct" ,ocaml-cstruct) + ("ocaml-zarith" ,ocaml-zarith) + ("ocaml-bigarray-compat" ,ocaml-bigarray-compat) + ("ocaml-stdlib-shims" ,ocaml-stdlib-shims) + ("ocaml-ptime" ,ocaml-ptime))) + (native-inputs + `(("ocaml-alcotest" ,ocaml-alcotest))) + (inputs `(("gmp" ,gmp))) + (synopsis "OCaml library for embedding typed ASN.1 grammars") + (description "@{ocaml-asn1-combinators} is an OCaml library for expressing +ASN.1 in OCaml. This allows you to skip the notation part of ASN.1, and embed +the abstract syntax directly in the language. These abstract syntax +representations can be used for parsing, serialization, or random testing. + +The only ASN.1 encodings currently supported are BER and DER.") + (license license:isc))) + (define-public js-of-ocaml (package (name "js-of-ocaml")