ocamlPackages.ppx_enumerate: init at 113.33.00+4.03

This commit is contained in:
Vincent Laporte 2017-02-26 12:48:16 +00:00
parent c4e5f18631
commit ecc5dd5571
2 changed files with 25 additions and 1 deletions

View file

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

View file

@ -600,7 +600,10 @@ let
then callPackage ../development/ocaml-modules/janestreet/ppx_custom_printf-113_33_00.nix {}
else callPackage ../development/ocaml-modules/janestreet/ppx-custom-printf.nix {};
ppx_enumerate = callPackage ../development/ocaml-modules/janestreet/ppx-enumerate.nix {};
ppx_enumerate =
if lib.versionOlder "4.03" ocaml.version
then callPackage ../development/ocaml-modules/janestreet/ppx_enumerate-113_33_00.nix {}
else callPackage ../development/ocaml-modules/janestreet/ppx-enumerate.nix {};
ppx_fail = callPackage ../development/ocaml-modules/janestreet/ppx-fail.nix {};