ocamlPackages.ppx_variants_conv: init at 113.33.00+4.03

This commit is contained in:
Vincent Laporte 2017-02-26 13:16:03 +00:00
parent 1aab9f884d
commit 0e6e2af219
2 changed files with 25 additions and 1 deletions

View file

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

View file

@ -622,7 +622,10 @@ let
ppx_typerep_conv = callPackage ../development/ocaml-modules/janestreet/ppx-typerep-conv.nix {};
ppx_variants_conv = callPackage ../development/ocaml-modules/janestreet/ppx-variants-conv.nix {};
ppx_variants_conv =
if lib.versionOlder "4.03" ocaml.version
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 {};