diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2015-02-20 11:37:32 +0100 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2015-02-20 11:37:32 +0100 |
commit | 49114dec1facc328f8a311248194f835ab6e74ef (patch) | |
tree | c0728da8d0f99162fb8bfe845182ee332d260ee8 /pkgs/development/ocaml-modules | |
parent | 43c6f913a5e4051b62c237997464924ad3fef536 (diff) | |
download | nixlib-49114dec1facc328f8a311248194f835ab6e74ef.tar nixlib-49114dec1facc328f8a311248194f835ab6e74ef.tar.gz nixlib-49114dec1facc328f8a311248194f835ab6e74ef.tar.bz2 nixlib-49114dec1facc328f8a311248194f835ab6e74ef.tar.lz nixlib-49114dec1facc328f8a311248194f835ab6e74ef.tar.xz nixlib-49114dec1facc328f8a311248194f835ab6e74ef.tar.zst nixlib-49114dec1facc328f8a311248194f835ab6e74ef.zip |
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
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r-- | pkgs/development/ocaml-modules/ocplib-endian/default.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/ocplib-endian/default.nix b/pkgs/development/ocaml-modules/ocplib-endian/default.nix new file mode 100644 index 000000000000..aede92fc0f0e --- /dev/null +++ b/pkgs/development/ocaml-modules/ocplib-endian/default.nix @@ -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 ]; + }; +} |