2021-01-15 22:18:51 +00:00
|
|
|
{ lib, buildOcaml, fetchurl, ocaml, type_conv }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
if lib.versionAtLeast ocaml.version "4.06"
|
2020-04-24 23:36:52 +00:00
|
|
|
then throw "bin_prot-112.24.00 is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
|
|
|
|
|
|
|
buildOcaml rec {
|
|
|
|
name = "bin_prot";
|
|
|
|
version = "112.24.00";
|
|
|
|
|
|
|
|
minimumSupportedOcamlVersion = "4.00";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/janestreet/bin_prot/archive/${version}.tar.gz";
|
|
|
|
sha256 = "dc0c978a825c7c123990af3317637c218f61079e6f35dc878260651084f1adb4";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ type_conv ];
|
|
|
|
|
|
|
|
hasSharedObjects = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/janestreet/bin_prot";
|
|
|
|
description = "Binary protocol generator ";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.ericbmerritt ];
|
|
|
|
};
|
|
|
|
}
|