ocamlPackages.async_unix: init at 113.33.00+4.03

This commit is contained in:
Vincent Laporte 2017-03-04 04:59:22 +00:00
parent d3899a2495
commit 5a0c577d32
2 changed files with 24 additions and 1 deletions

View file

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

View file

@ -726,7 +726,9 @@ let
async_rpc_kernel = callPackage ../development/ocaml-modules/janestreet/async-rpc-kernel.nix {};
async_unix =
if lib.versionOlder "4.02" ocaml.version
if lib.versionOlder "4.03" ocaml.version
then callPackage ../development/ocaml-modules/janestreet/async_unix-113_33_00.nix {}
else if lib.versionOlder "4.02" ocaml.version
then callPackage ../development/ocaml-modules/janestreet/async-unix.nix {}
else async_unix_p4;