From 5a0c577d32bc5e7210033001dae5c351e2b4a0c8 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Sat, 4 Mar 2017 04:59:22 +0000 Subject: [PATCH] ocamlPackages.async_unix: init at 113.33.00+4.03 --- .../janestreet/async_unix-113_33_00.nix | 21 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 4 +++- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/ocaml-modules/janestreet/async_unix-113_33_00.nix diff --git a/pkgs/development/ocaml-modules/janestreet/async_unix-113_33_00.nix b/pkgs/development/ocaml-modules/janestreet/async_unix-113_33_00.nix new file mode 100644 index 00000000000..595e1198de5 --- /dev/null +++ b/pkgs/development/ocaml-modules/janestreet/async_unix-113_33_00.nix @@ -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; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 570fc2b3a4d..1cc5de01e10 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -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;