ocamlPackages.core_kernel: init at 113.33.01+4.03

This commit is contained in:
Vincent Laporte 2017-02-26 17:29:01 +00:00
parent 1f1a950cb0
commit 0a768bd6c8
2 changed files with 28 additions and 1 deletions

View file

@ -0,0 +1,25 @@
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam, topkg, ppx_jane
, bin_prot, fieldslib, typerep, variantslib
, ppx_assert, ppx_bench, ppx_expect, ppx_inline_test
}:
stdenv.mkDerivation {
name = "ocaml${ocaml.version}-core_kernel-113.33.01+4.03";
src = fetchurl {
url = http://ocaml.janestreet.com/ocaml-core/113.33/files/core_kernel-113.33.01+4.03.tar.gz;
sha256 = "0ra2frspqjqk1wbb58lrb0anrgsyhja00zsybka85qy71lblamfs";
};
buildInputs = [ ocaml findlib ocamlbuild opam ppx_jane ];
propagatedBuildInputs = [
bin_prot fieldslib typerep variantslib
ppx_assert ppx_bench ppx_expect ppx_inline_test
];
inherit (topkg) installPhase;
meta = {
license = stdenv.lib.licenses.asl20;
inherit (ocaml.meta) platforms;
};
}

View file

@ -688,7 +688,9 @@ let
else bin_prot_p4;
core_kernel =
if lib.versionOlder "4.02" ocaml.version
if lib.versionOlder "4.03" ocaml.version
then callPackage ../development/ocaml-modules/janestreet/core_kernel-113_33_01.nix {}
else if lib.versionOlder "4.02" ocaml.version
then callPackage ../development/ocaml-modules/janestreet/core_kernel.nix {}
else core_kernel_p4;