[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 86/96] gnu: Add ocaml-cstruct
From: |
Julien Lepiller |
Subject: |
[PATCH 86/96] gnu: Add ocaml-cstruct |
Date: |
Tue, 3 Jan 2017 20:12:07 +0100 |
* gnu/packages/ocaml.scm (ocaml-cstruct): New variable.
---
gnu/packages/ocaml.scm | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index ab2197c0c..4a861bcd7 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -2661,3 +2661,30 @@ and bigarrays, based on new primitives added in version
4.01. It works on
strings, bytes and bigstring (Bigarrys of chars), and provides submodules for
big- and little-endian, with their unsafe counter-parts.")
(license license:lgpl2.1)))
+
+(define-public ocaml-cstruct
+ (package
+ (name "ocaml-cstruct")
+ (version "2.3.1")
+ (home-page "https://github.com/mirage/ocaml-cstruct/")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append home-page "/archive/v" version ".tar.gz"))
+ (sha256 (base32
+ "15qpdc8421shq4pprdas9jznpva45229wkfqbwcxw9khaiiz7949"))))
+ (build-system ocaml-build-system)
+ (arguments `(#:configure-flags
+ (list "--enable-lwt" "--enable-async")))
+ (native-inputs `(("ounit" ,ocaml-ounit)
+ ("ppx-tools" ,ocaml-ppx-tools)
+ ("camlp4" ,camlp4)))
+ (propagated-inputs `(("ocplib-endian" ,ocaml-ocplib-endian)
+ ("lwt" ,ocaml-lwt)
+ ("async" ,ocaml-async)
+ ("sexplib" ,ocaml-sexplib)))
+ (synopsis "Access C structures via a camlp4 extension")
+ (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)))
--
2.11.0
- [PATCH 76/96] gnu: Add ocaml-ppx-expect, (continued)
- [PATCH 76/96] gnu: Add ocaml-ppx-expect, Julien Lepiller, 2017/01/03
- [PATCH 77/96] gnu: Add ocaml-ppx-jane, Julien Lepiller, 2017/01/03
- [PATCH 78/96] gnu: Add ocaml-core-kernel, Julien Lepiller, 2017/01/03
- [PATCH 79/96] gnu: Add ocaml-async-kernel, Julien Lepiller, 2017/01/03
- [PATCH 80/96] gnu: Add ocaml-async-rpc-kernel, Julien Lepiller, 2017/01/03
- [PATCH 81/96] gnu: Add ocaml-core, Julien Lepiller, 2017/01/03
- [PATCH 82/96] gnu: Add ocaml-async-unix, Julien Lepiller, 2017/01/03
- [PATCH 83/96] gnu: Add ocaml-async-extra, Julien Lepiller, 2017/01/03
- [PATCH 84/96] gnu: Add ocaml-async, Julien Lepiller, 2017/01/03
- [PATCH 85/96] gnu: Add ocaml-ocplib-endian, Julien Lepiller, 2017/01/03
- [PATCH 86/96] gnu: Add ocaml-cstruct,
Julien Lepiller <=
- [PATCH 87/96] gnu: Add ocaml-hex, Julien Lepiller, 2017/01/03
- [PATCH 88/96] gnu: Add ocaml-ezjsonm, Julien Lepiller, 2017/01/03
- [PATCH 89/96] gnu: Add ocaml-uri, Julien Lepiller, 2017/01/03
- [PATCH 90/96] gnu: Add ocaml-easy-format, Julien Lepiller, 2017/01/03
- [PATCH 91/96] gnu: Add ocaml-optcomp, Julien Lepiller, 2017/01/03
- [PATCH 93/96] gnu: Add ocaml-uuidm, Julien Lepiller, 2017/01/03
- [PATCH 92/96] gnu: Add ocaml-piqilib, Julien Lepiller, 2017/01/03
- [PATCH 95/96] gnu: Add ocaml-piqi, Julien Lepiller, 2017/01/03
- [PATCH 94/96] gnu: Add ocamlgraph, Julien Lepiller, 2017/01/03
- [PATCH 96/96] gnu: Add bap, Julien Lepiller, 2017/01/03