Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / ocaml-modules / bin_prot / default.nix
blob50ef935aff6bb8bc82813cfdb3da9351617525d8
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}"
5 else
7 buildOcaml rec {
8   name = "bin_prot";
9   version = "112.24.00";
11   minimumSupportedOcamlVersion = "4.00";
13   src = fetchurl {
14     url = "https://github.com/janestreet/bin_prot/archive/${version}.tar.gz";
15     sha256 = "dc0c978a825c7c123990af3317637c218f61079e6f35dc878260651084f1adb4";
16   };
18   propagatedBuildInputs = [ type_conv ];
20   hasSharedObjects = true;
22   meta = with lib; {
23     homepage = "https://github.com/janestreet/bin_prot";
24     description = "Binary protocol generator ";
25     license = licenses.asl20;
26     maintainers = [ maintainers.ericbmerritt ];
27   };