diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2018-09-28 15:28:36 +0000 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2018-10-08 05:59:24 +0000 |
commit | bdaedbe38ce73f874004afdb49658caaaf014b35 (patch) | |
tree | 850445af44c09cd474668361a5e4e21790eb2d5a /pkgs/development/ocaml-modules/lwt | |
parent | 4b1f2fb0b3cecef4666a861516b0f0fc4e530522 (diff) | |
download | nixlib-bdaedbe38ce73f874004afdb49658caaaf014b35.tar nixlib-bdaedbe38ce73f874004afdb49658caaaf014b35.tar.gz nixlib-bdaedbe38ce73f874004afdb49658caaaf014b35.tar.bz2 nixlib-bdaedbe38ce73f874004afdb49658caaaf014b35.tar.lz nixlib-bdaedbe38ce73f874004afdb49658caaaf014b35.tar.xz nixlib-bdaedbe38ce73f874004afdb49658caaaf014b35.tar.zst nixlib-bdaedbe38ce73f874004afdb49658caaaf014b35.zip |
ocamlPackages.ocaml_lwt: 3.3.0 -> 4.1.0
Diffstat (limited to 'pkgs/development/ocaml-modules/lwt')
-rw-r--r-- | pkgs/development/ocaml-modules/lwt/3.x.nix (renamed from pkgs/development/ocaml-modules/lwt/default.nix) | 0 | ||||
-rw-r--r-- | pkgs/development/ocaml-modules/lwt/4.x.nix | 35 |
2 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/lwt/default.nix b/pkgs/development/ocaml-modules/lwt/3.x.nix index c8371feb9052..c8371feb9052 100644 --- a/pkgs/development/ocaml-modules/lwt/default.nix +++ b/pkgs/development/ocaml-modules/lwt/3.x.nix diff --git a/pkgs/development/ocaml-modules/lwt/4.x.nix b/pkgs/development/ocaml-modules/lwt/4.x.nix new file mode 100644 index 000000000000..f43a65065b92 --- /dev/null +++ b/pkgs/development/ocaml-modules/lwt/4.x.nix @@ -0,0 +1,35 @@ +{ stdenv, fetchzip, pkgconfig, ncurses, libev, dune +, ocaml, findlib, cppo +, ocaml-migrate-parsetree, ppx_tools_versioned, result +}: + +let inherit (stdenv.lib) optional versionAtLeast; in + +stdenv.mkDerivation rec { + version = "4.1.0"; + name = "ocaml${ocaml.version}-lwt-${version}"; + + src = fetchzip { + url = "https://github.com/ocsigen/lwt/archive/${version}.tar.gz"; + sha256 = "16wnc61kfj54z4q8sn9f5iik37pswz328hcz3z6rkza3kh3s6wmm"; + }; + + nativeBuildInputs = [ pkgconfig ]; + buildInputs = [ ocaml findlib dune cppo + ocaml-migrate-parsetree ppx_tools_versioned + ] ++ optional (!versionAtLeast ocaml.version "4.07") ncurses; + propagatedBuildInputs = [ libev result ]; + + configurePhase = "ocaml src/util/configure.ml -use-libev true"; + buildPhase = "jbuilder build -p lwt"; + inherit (dune) installPhase; + + meta = { + homepage = "https://ocsigen.org/lwt/"; + description = "A cooperative threads library for OCaml"; + maintainers = [ stdenv.lib.maintainers.vbgl ]; + license = stdenv.lib.licenses.lgpl21; + inherit (ocaml.meta) platforms; + }; +} + |