1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/ocaml-modules/ocplib-endian/default.nix
Vincent Laporte 49114dec1f 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
2015-02-20 11:37:32 +01:00

25 lines
668 B
Nix

{ 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 ];
};
}