From patchwork Wed Aug 4 07:15:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: pukkamustard X-Patchwork-Id: 31793 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 5322127BC78; Wed, 4 Aug 2021 08:17:52 +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 1D19427BC6B for ; Wed, 4 Aug 2021 08:17:52 +0100 (BST) Received: from localhost ([::1]:55242 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mBB9z-0003jz-3G for patchwork@mira.cbaines.net; Wed, 04 Aug 2021 03:17:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46104) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBB9J-0002aJ-NQ for guix-patches@gnu.org; Wed, 04 Aug 2021 03:17:09 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59106) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mBB9J-0004q6-G8 for guix-patches@gnu.org; Wed, 04 Aug 2021 03:17:09 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mBB9J-0002mW-8o for guix-patches@gnu.org; Wed, 04 Aug 2021 03:17:09 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49867] [PATCH 09/29] gnu: Add ocaml-eqaf. Resent-From: pukkamustard Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 04 Aug 2021 07:17:09 +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.162806142410564 (code B ref 49867); Wed, 04 Aug 2021 07:17:09 +0000 Received: (at 49867) by debbugs.gnu.org; 4 Aug 2021 07:17:04 +0000 Received: from localhost ([127.0.0.1]:42380 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBB9D-0002k0-DW for submit@debbugs.gnu.org; Wed, 04 Aug 2021 03:17:04 -0400 Received: from mout02.posteo.de ([185.67.36.66]:34353) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBB98-0002hv-QI for 49867@debbugs.gnu.org; Wed, 04 Aug 2021 03:16:59 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 2B01C240101 for <49867@debbugs.gnu.org>; Wed, 4 Aug 2021 09:16:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1628061413; bh=eqxM77Rt46bcoBfAqNWyi9wZJi39EHO7tvVr00rCJcQ=; h=From:To:Cc:Subject:Date:From; b=rVTKVj+aOg6rMRjCcHRWpCb2k1vmWPYvtIAFyWjGD4EHTx0K5jTA0IaUwGOMQ7tF3 6nYRd1I4oPdo8WcOe7T8tm0kwdLwtVOQFBQ+7EXIhtPUEdBCe/7Sb7DXcVO4jrIs/Y VznQF5ztTF2zlKWAmkcXJJzzX98eFrBXtt4DHWgtCh4H2AF2JQCTZ3eMNHAXiNeOxd /SKqG9YZRGMsRSELMvYFoXvKnbdc8eUYHiEUTZrc/yJ9IzTE3G9lR42zWU835NxgiK BEQmCAGb/kb+vRy5AyYp9kAAgQcywO5w/5O3exEF4v6xwO/eHniDyl+0GZl7XFow28 0HECSrcynwBrA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GfjjJ4f0tz6tmF; Wed, 4 Aug 2021 09:16:52 +0200 (CEST) From: pukkamustard Date: Wed, 4 Aug 2021 07:15:25 +0000 Message-Id: <20210804071545.21181-9-pukkamustard@posteo.net> In-Reply-To: <20210804071545.21181-1-pukkamustard@posteo.net> References: <20210804071545.21181-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-eqaf): New variable. --- gnu/packages/ocaml.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index c29a272214..04240b560b 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -7328,6 +7328,39 @@ establishing TCP and SSL/TLS connections from @code{ocaml-conduit} using @code{ocaml-lwt}.") (license license:isc))) +(define-public ocaml-eqaf + (package + (name "ocaml-eqaf") + (version "0.7") + (home-page "https://github.com/mirage/eqaf") + (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 + "06hsnnjax1kb3qsi3cj0nyyz8c2hj2gbw3h517gpjinpnwy2fr85")))) + (build-system dune-build-system) + (arguments + ;; Tests require ocaml-crowbar which depends on + ;; ocaml-afl-persistent. ocaml-afl-persistent uses a non-standard build system + ;; and I have not yet managed to build it with Guix. There is an on-going effort + ;; to port the build system to dune + ;; (https://github.com/stedolan/ocaml-afl-persistent/pull/7). With that it should + ;; be easy to add ocaml-afl-persistent and ocaml-crowbar and enable these tests. + `(#:tests? #f)) + (propagated-inputs + ;; required to build the eqaf.cstruct library (see https://github.com/mirage/eqaf/pull/27) + `(("ocaml-bigarray-compat" ,ocaml-bigarray-compat) + ("ocaml-cstruct" ,ocaml-cstruct))) + (synopsis "OCaml library for constant-time equal function on string") + (description "This OCaml library provides an equal function on string in +constant-time to avoid timing-attack with crypto stuff.") + (license license:expat))) + (define-public js-of-ocaml (package (name "js-of-ocaml")