ocamlPackages.core: init at 113.33.02+4.03

This commit is contained in:
Vincent Laporte 2017-02-26 17:42:02 +00:00
parent 0a768bd6c8
commit 8e1b4b3c4c
2 changed files with 24 additions and 1 deletions

View File

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

View File

@ -695,7 +695,9 @@ let
else core_kernel_p4;
core =
if lib.versionOlder "4.02" ocaml.version
if lib.versionOlder "4.03" ocaml.version
then callPackage ../development/ocaml-modules/janestreet/core-113_33_02.nix {}
else if lib.versionOlder "4.02" ocaml.version
then callPackage ../development/ocaml-modules/janestreet/core.nix {}
else core_p4;