1 { lib, buildOcaml, fetchurl, ocaml, type_conv }:
3 if lib.versionAtLeast ocaml.version "4.06"
4 then throw "bin_prot-112.24.00 is not available for OCaml ${ocaml.version}"
11 minimumSupportedOcamlVersion = "4.00";
14 url = "https://github.com/janestreet/bin_prot/archive/${version}.tar.gz";
15 sha256 = "dc0c978a825c7c123990af3317637c218f61079e6f35dc878260651084f1adb4";
18 propagatedBuildInputs = [ type_conv ];
20 hasSharedObjects = true;
23 homepage = "https://github.com/janestreet/bin_prot";
24 description = "Binary protocol generator ";
25 license = licenses.asl20;
26 maintainers = [ maintainers.ericbmerritt ];