ocamlPackages.ppx_expect: init at 113.33.01+4.03

This commit is contained in:
Vincent Laporte 2017-02-26 13:43:30 +00:00
parent 0e6e2af219
commit 8f74b9024f
2 changed files with 26 additions and 1 deletions

View file

@ -0,0 +1,22 @@
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam, topkg
, ppx_driver, ppx_assert, ppx_custom_printf, ppx_inline_test
, ppx_fields_conv, ppx_variants_conv, re, sexplib, fieldslib
}:
stdenv.mkDerivation {
name = "ocaml${ocaml.version}-ppx_expect-113.33.01+4.03";
src = fetchurl {
url = http://ocaml.janestreet.com/ocaml-core/113.33/files/ppx_expect-113.33.01+4.03.tar.gz;
sha256 = "1r358vx3wnkzq8kwgi49400l1fx2bnl6gds4hl7s67lxsqxki2z7";
};
buildInputs = [ ocaml findlib ocamlbuild opam ppx_assert ppx_custom_printf ppx_fields_conv ppx_variants_conv re ];
propagatedBuildInputs = [ ppx_driver ppx_inline_test fieldslib sexplib ];
inherit (topkg) installPhase;
meta = {
license = stdenv.lib.licenses.asl20;
inherit (ocaml.meta) platforms;
};
}

View file

@ -627,7 +627,10 @@ let
then callPackage ../development/ocaml-modules/janestreet/ppx_variants_conv-113_33_00.nix {}
else callPackage ../development/ocaml-modules/janestreet/ppx-variants-conv.nix {};
ppx_expect = callPackage ../development/ocaml-modules/janestreet/ppx-expect.nix {};
ppx_expect =
if lib.versionOlder "4.03" ocaml.version
then callPackage ../development/ocaml-modules/janestreet/ppx_expect-113_33_01.nix {}
else callPackage ../development/ocaml-modules/janestreet/ppx-expect.nix {};
ppx_jane = callPackage ../development/ocaml-modules/janestreet/ppx-jane.nix {};