ocamlPackages.async_kernel: init at 113.33.00

This commit is contained in:
Vincent Laporte 2017-03-03 22:02:12 +00:00
parent 2552b034ab
commit d3899a2495
2 changed files with 24 additions and 1 deletions

View File

@ -0,0 +1,21 @@
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam, topkg
, core_kernel, ppx_jane
}:
stdenv.mkDerivation {
name = "ocaml${ocaml.version}-async_kernel-113.33.00";
src = fetchurl {
url = http://ocaml.janestreet.com/ocaml-core/113.33/files/async_kernel-113.33.00.tar.gz;
sha256 = "1kkkqpdd3mq9jh3b3l1yk37841973lh6g3pfv8fcjzif4n7myf15";
};
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

@ -717,7 +717,9 @@ let
else core_extended_p4; else core_extended_p4;
async_kernel = async_kernel =
if lib.versionOlder "4.02" ocaml.version if lib.versionOlder "4.03" ocaml.version
then callPackage ../development/ocaml-modules/janestreet/async_kernel-113_33_00.nix {}
else if lib.versionOlder "4.02" ocaml.version
then callPackage ../development/ocaml-modules/janestreet/async-kernel.nix {} then callPackage ../development/ocaml-modules/janestreet/async-kernel.nix {}
else async_kernel_p4; else async_kernel_p4;