ocamlPackages.ppx_fail: init at 113.33.00+4.03

This commit is contained in:
Vincent Laporte 2017-02-26 14:10:02 +00:00
parent 8f74b9024f
commit cf39dba1d8
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_here
}:
stdenv.mkDerivation {
name = "ocaml${ocaml.version}-ppx_fail-113.33.00+4.03";
src = fetchurl {
url = http://ocaml.janestreet.com/ocaml-core/113.33/files/ppx_fail-113.33.00+4.03.tar.gz;
sha256 = "1fy1aqsylf6yk527w13rm2b20il9vy026c5ww65pj3ks5zykfvx9";
};
buildInputs = [ ocaml findlib ocamlbuild opam ppx_tools ];
propagatedBuildInputs = [ ppx_here ];
inherit (topkg) installPhase;
meta = {
license = stdenv.lib.licenses.asl20;
inherit (ocaml.meta) platforms;
};
}

View File

@ -605,7 +605,10 @@ let
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 {};
ppx_fail =
if lib.versionOlder "4.03" ocaml.version
then callPackage ../development/ocaml-modules/janestreet/ppx_fail-113_33_00.nix {}
else callPackage ../development/ocaml-modules/janestreet/ppx-fail.nix {};
ppx_fields_conv =
if lib.versionOlder "4.03" ocaml.version