From patchwork Wed Aug 4 07:15:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: pukkamustard X-Patchwork-Id: 31792 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 E1B4327BC78; Wed, 4 Aug 2021 08:17:46 +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 A975127BC6B for ; Wed, 4 Aug 2021 08:17:46 +0100 (BST) Received: from localhost ([::1]:55098 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mBB9t-0003eq-NS for patchwork@mira.cbaines.net; Wed, 04 Aug 2021 03:17:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46168) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBB9Q-0002ir-8r for guix-patches@gnu.org; Wed, 04 Aug 2021 03:17:16 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59141) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mBB9Q-0004xY-2L for guix-patches@gnu.org; Wed, 04 Aug 2021 03:17:16 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mBB9P-0002pO-UC for guix-patches@gnu.org; Wed, 04 Aug 2021 03:17:15 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49867] [PATCH 22/29] gnu: Add ocaml-cstruct-unix. Resent-From: pukkamustard Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 04 Aug 2021 07:17:15 +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.162806143310825 (code B ref 49867); Wed, 04 Aug 2021 07:17:15 +0000 Received: (at 49867) by debbugs.gnu.org; 4 Aug 2021 07:17:13 +0000 Received: from localhost ([127.0.0.1]:42442 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBB9N-0002oK-Fa for submit@debbugs.gnu.org; Wed, 04 Aug 2021 03:17:13 -0400 Received: from mout01.posteo.de ([185.67.36.65]:36661) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBB9D-0002i9-Hq for 49867@debbugs.gnu.org; Wed, 04 Aug 2021 03:17:05 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id C1DC8240027 for <49867@debbugs.gnu.org>; Wed, 4 Aug 2021 09:16:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1628061419; bh=BwK1kUVKcm4mzR3xxpf6F5iBPpIt66YyLq8nQYILfCw=; h=From:To:Cc:Subject:Date:From; b=gz8jm0P6rGjRJGpbP8EM+SDrKJ7bJxg7jGEAcZei12VzCMVoftNXffpPTbvNVNNU9 FmOVw2OK234JGcTlVuNb17J/5PaKv+t1pbJx8AYM+47R33Ye7Glra66M2xtCEYS1fW kawtUWHHPKNWsQQ2xAW4WFSMQcDjJXkUXPJfXV/RrnaO2eC73V+8emOUfeqAV4+2Fc 5IPGL0tJcsqytyQK9+DxHfwnDDmYLRt6E9rsYuKxTf5CBiSajPrgBSH5hDC+kSQqGf gcApF9tcJO5maefGcBjOCgx368PSGCakbJVO70fBP9B4xiJmuBMhXLL10dQVlSxCxq pcF7aS0Jou4hw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GfjjR24P1z6tmF; Wed, 4 Aug 2021 09:16:59 +0200 (CEST) From: pukkamustard Date: Wed, 4 Aug 2021 07:15:38 +0000 Message-Id: <20210804071545.21181-22-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-cstruct-unix): New variable. --- gnu/packages/ocaml.scm | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index 6effe1ff12..a9a4c8a684 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -3412,6 +3412,22 @@ to access C-like structures directly from OCaml. It supports both reading and writing to these structures, and they are accessed via the Bigarray module.") (license license:isc))) +(define-public ocaml-cstruct-unix + (package + (inherit ocaml-cstruct) + (name "ocaml-cstruct-unix") + (build-system dune-build-system) + (arguments + `(#:package "cstruct-unix" + #:test-target ".")) + (propagated-inputs + `(("ocaml-cstruct" ,ocaml-cstruct))) + (synopsis "Unix variation of the @code{ocaml-cstruct} library for accessing C-like structures directly from OCaml") + (description "Cstruct is a library and syntax extension to make it easier to access C-like +structures directly from OCaml. It supports both reading and writing to these +structures, and they are accessed via the `Bigarray` module.") + (license license:isc))) + (define-public ocaml-hex (package (name "ocaml-hex")