Adds ocaml-ocplib-endian
This OCaml library provides optimised functions to read and write int16/32/64 from strings, bytes and bigarrays, based on primitives added in version 4.01. Homepage: https://github.com/OCamlPro/ocplib-endian
This commit is contained in:
parent
43c6f913a5
commit
49114dec1f
24
pkgs/development/ocaml-modules/ocplib-endian/default.nix
Normal file
24
pkgs/development/ocaml-modules/ocplib-endian/default.nix
Normal file
@ -0,0 +1,24 @@
|
||||
{ stdenv, fetchzip, ocaml, findlib, cppo }:
|
||||
|
||||
let version = "0.8"; in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "ocaml-ocplib-endian-${version}";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://github.com/OCamlPro/ocplib-endian/archive/${version}.tar.gz";
|
||||
sha256 = "12xjvzw245mj4s02dgi4k2sx5gam7wxi4mbxmz6k18zg64n48yjd";
|
||||
};
|
||||
|
||||
buildInputs = [ ocaml findlib cppo ];
|
||||
|
||||
createFindlibDestdir = true;
|
||||
|
||||
meta = {
|
||||
description = "Optimised functions to read and write int16/32/64";
|
||||
homepage = https://github.com/OCamlPro/ocplib-endian;
|
||||
license = stdenv.lib.licenses.lgpl21;
|
||||
platforms = ocaml.meta.platforms;
|
||||
maintainers = with stdenv.lib.maintainers; [ vbgl ];
|
||||
};
|
||||
}
|
@ -3988,6 +3988,8 @@ let
|
||||
|
||||
ocp-index = callPackage ../development/tools/ocaml/ocp-index { };
|
||||
|
||||
ocplib-endian = callPackage ../development/ocaml-modules/ocplib-endian { };
|
||||
|
||||
ocsigen_server = callPackage ../development/ocaml-modules/ocsigen-server { };
|
||||
|
||||
ojquery = callPackage ../development/ocaml-modules/ojquery { };
|
||||
|
Loading…
Reference in New Issue
Block a user