depot/third_party/nixpkgs/pkgs/development/ocaml-modules/bin_prot/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

28 lines
763 B
Nix

{ 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
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;
meta = with stdenv.lib; {
homepage = "https://github.com/janestreet/bin_prot";
description = "Binary protocol generator ";
license = licenses.asl20;
maintainers = [ maintainers.ericbmerritt ];
};
}