ocamlPackages.ppx_typerep_conv: init at 113.33.00+4.03

This commit is contained in:
Vincent Laporte 2017-02-26 15:55:06 +00:00
parent 3c2c608c2e
commit ceabe0d3dd
2 changed files with 25 additions and 1 deletions

View file

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

View file

@ -635,7 +635,10 @@ let
then callPackage ../development/ocaml-modules/janestreet/ppx_sexp_value-113_33_00.nix {}
else callPackage ../development/ocaml-modules/janestreet/ppx-sexp-value.nix {};
ppx_typerep_conv = callPackage ../development/ocaml-modules/janestreet/ppx-typerep-conv.nix {};
ppx_typerep_conv =
if lib.versionOlder "4.03" ocaml.version
then callPackage ../development/ocaml-modules/janestreet/ppx_typerep_conv-113_33_00.nix {}
else callPackage ../development/ocaml-modules/janestreet/ppx-typerep-conv.nix {};
ppx_variants_conv =
if lib.versionOlder "4.03" ocaml.version