diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-03-04 04:59:22 +0000 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-03-04 04:59:22 +0000 |
commit | 5a0c577d32bc5e7210033001dae5c351e2b4a0c8 (patch) | |
tree | ca92e0585d295128b931e07a18530f78c8d7a1fe | |
parent | d3899a2495a45efc6490454f69ee0eca6a324ec8 (diff) | |
download | nixlib-5a0c577d32bc5e7210033001dae5c351e2b4a0c8.tar nixlib-5a0c577d32bc5e7210033001dae5c351e2b4a0c8.tar.gz nixlib-5a0c577d32bc5e7210033001dae5c351e2b4a0c8.tar.bz2 nixlib-5a0c577d32bc5e7210033001dae5c351e2b4a0c8.tar.lz nixlib-5a0c577d32bc5e7210033001dae5c351e2b4a0c8.tar.xz nixlib-5a0c577d32bc5e7210033001dae5c351e2b4a0c8.tar.zst nixlib-5a0c577d32bc5e7210033001dae5c351e2b4a0c8.zip |
ocamlPackages.async_unix: init at 113.33.00+4.03
-rw-r--r-- | pkgs/development/ocaml-modules/janestreet/async_unix-113_33_00.nix | 21 | ||||
-rw-r--r-- | pkgs/top-level/ocaml-packages.nix | 4 |
2 files changed, 24 insertions, 1 deletions
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 000000000000..595e1198de5f --- /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 570fc2b3a4d4..1cc5de01e101 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; |