ocamlPackages.ppx_compare: init at 113.33.00+4.03

This commit is contained in:
Vincent Laporte 2017-02-25 21:31:14 +00:00
parent 0e06c903b5
commit 3a9ae7e367
2 changed files with 25 additions and 1 deletions

@ -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_compare-113.33.00+4.03";
src = fetchurl {
url = http://ocaml.janestreet.com/ocaml-core/113.33/files/ppx_compare-113.33.00+4.03.tar.gz;
sha256 = "07drgg6c857lsvxdjscdcb1ncdr5p3183spw32sbfcrbnr12nzys";
};
buildInputs = [ ocaml findlib ocamlbuild opam ppx_tools ];
propagatedBuildInputs = [ ppx_type_conv ppx_deriving ];
inherit (topkg) installPhase;
meta = {
license = stdenv.lib.licenses.asl20;
inherit (ocaml.meta) platforms;
};
}

@ -569,7 +569,10 @@ let
then callPackage ../development/ocaml-modules/janestreet/ppx_type_conv-113_33_02.nix { }
else callPackage ../development/ocaml-modules/janestreet/ppx-type-conv.nix {};
ppx_compare = callPackage ../development/ocaml-modules/janestreet/ppx-compare.nix {};
ppx_compare =
if lib.versionOlder "4.03" ocaml.version
then callPackage ../development/ocaml-modules/janestreet/ppx_compare-113_33_00.nix {}
else callPackage ../development/ocaml-modules/janestreet/ppx-compare.nix {};
ppx_here = callPackage ../development/ocaml-modules/janestreet/ppx-here.nix {};