ocamlPackages.ppx_bin_prot: init at 113.33.00+4.03

This commit is contained in:
Vincent Laporte 2017-02-26 16:03:43 +00:00
parent ceabe0d3dd
commit 68998dca58
2 changed files with 25 additions and 1 deletions

View File

@ -0,0 +1,21 @@
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam, topkg
, bin_prot, ppx_deriving, ppx_tools, ppx_type_conv
}:
stdenv.mkDerivation {
name = "ocaml${ocaml.version}-ppx_bin_prot-113.33.00+4.03";
src = fetchurl {
url = http://ocaml.janestreet.com/ocaml-core/113.33/files/ppx_bin_prot-113.33.00+4.03.tar.gz;
sha256 = "1xw1yjgnd5ny1cq0n6rbsdaywyzq2n0jwg4gjsxv14dhv0alav36";
};
buildInputs = [ ocaml findlib ocamlbuild opam ppx_tools ];
propagatedBuildInputs = [ bin_prot ppx_deriving ppx_type_conv ];
inherit (topkg) installPhase;
meta = {
license = stdenv.lib.licenses.asl20;
inherit (ocaml.meta) platforms;
};
}

View File

@ -593,7 +593,10 @@ let
then callPackage ../development/ocaml-modules/janestreet/ppx_bench-113_33_00.nix {}
else callPackage ../development/ocaml-modules/janestreet/ppx-bench.nix {};
ppx_bin_prot = callPackage ../development/ocaml-modules/janestreet/ppx-bin-prot.nix {};
ppx_bin_prot =
if lib.versionOlder "4.03" ocaml.version
then callPackage ../development/ocaml-modules/janestreet/ppx_bin_prot-113_33_00.nix {}
else callPackage ../development/ocaml-modules/janestreet/ppx-bin-prot.nix {};
ppx_custom_printf =
if lib.versionOlder "4.03" ocaml.version