1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-02-16 15:58:36 +00:00

ocamlPackages.ppx_core: init at 113.33.01+4.03

This commit is contained in:
Vincent Laporte 2017-02-23 18:27:37 +00:00
parent be427d6e51
commit 63796fd38f
2 changed files with 24 additions and 1 deletions

View file

@ -0,0 +1,20 @@
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam, topkg
, ppx_tools
}:
stdenv.mkDerivation {
name = "ocaml${ocaml.version}-ppx_core-133.33.01+4.03";
src = fetchurl {
url = http://ocaml.janestreet.com/ocaml-core/113.33/files/ppx_core-113.33.01+4.03.tar.gz;
sha256 = "0ibww4lx87lmn164mxczl3sa7ldwc7g1zi4m9c4vllsv004iyffl";
};
buildInputs = [ ocaml findlib ocamlbuild opam ppx_tools ];
inherit (topkg) installPhase;
meta = {
license = stdenv.lib.licenses.asl20;
inherit (ocaml.meta) platforms;
};
}

View file

@ -554,7 +554,10 @@ let
buildOcamlJane = callPackage ../development/ocaml-modules/janestreet/buildOcamlJane.nix {};
ppx_core = callPackage ../development/ocaml-modules/janestreet/ppx-core.nix {};
ppx_core =
if lib.versionOlder "4.03" ocaml.version
then callPackage ../development/ocaml-modules/janestreet/ppx_core-113_33_01.nix {}
else callPackage ../development/ocaml-modules/janestreet/ppx-core.nix {};
ppx_optcomp = callPackage ../development/ocaml-modules/janestreet/ppx-optcomp.nix {};