2018-08-21 14:15:58 +01:00
|
|
|
{ stdenv, buildOcaml, fetchurl, ocaml, type_conv }:
|
|
|
|
|
|
|
|
if stdenv.lib.versionAtLeast ocaml.version "4.06"
|
|
|
|
then throw "bin_prot-112.24.00 is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
2015-05-12 01:12:05 +01:00
|
|
|
|
|
|
|
buildOcaml rec {
|
2015-09-06 20:15:10 +01:00
|
|
|
name = "bin_prot";
|
2015-05-12 01:12:05 +01:00
|
|
|
version = "112.24.00";
|
|
|
|
|
|
|
|
minimumSupportedOcamlVersion = "4.00";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/janestreet/bin_prot/archive/${version}.tar.gz";
|
|
|
|
sha256 = "dc0c978a825c7c123990af3317637c218f61079e6f35dc878260651084f1adb4";
|
|
|
|
};
|
|
|
|
|
2015-09-06 20:15:10 +01:00
|
|
|
propagatedBuildInputs = [ type_conv ];
|
2015-05-12 01:12:05 +01:00
|
|
|
|
|
|
|
hasSharedObjects = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/janestreet/bin_prot;
|
|
|
|
description = "Binary protocol generator ";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.ericbmerritt ];
|
|
|
|
};
|
|
|
|
}
|