guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 85/96] gnu: Add ocaml-ocplib-endian


From: Julien Lepiller
Subject: [PATCH 85/96] gnu: Add ocaml-ocplib-endian
Date: Tue, 3 Jan 2017 20:12:06 +0100

* gnu/packages/ocaml.scm (ocaml-ocplib-endian): New variable.
---
 gnu/packages/ocaml.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 50e028bf7..ab2197c0c 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -2640,3 +2640,24 @@ standard library that was developed by Jane Street.")
     (synopsis "Monadic concurrency library")
     (description "Monadic concurrency library.")
     (license license:asl2.0)))
+
+(define-public ocaml-ocplib-endian
+  (package
+    (name "ocaml-ocplib-endian")
+    (version "1.0")
+    (home-page "https://github.com/OCamlPro/ocplib-endian/";)
+    (source
+      (origin
+        (method url-fetch)
+        (uri (string-append home-page "/archive/" version ".tar.gz"))
+        (sha256 (base32
+                  "0hwj09rnzjs0m0kazz5h2mgs6p95j0zlga8cda5srnzqmzhniwkn"))))
+    (build-system ocaml-build-system)
+    (native-inputs `(("cppo" ,ocaml-cppo)))
+    (synopsis "Optimised functions to read and write int16/32/64 from strings
+and bigarrays")
+    (description "Optimised functions to read and write int16/32/64 from 
strings
+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)))
-- 
2.11.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]