aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/ocaml-modules/lwt
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/ocaml-modules/lwt')
-rw-r--r--nixpkgs/pkgs/development/ocaml-modules/lwt/default.nix (renamed from nixpkgs/pkgs/development/ocaml-modules/lwt/4.x.nix)4
-rw-r--r--nixpkgs/pkgs/development/ocaml-modules/lwt/legacy.nix58
-rw-r--r--nixpkgs/pkgs/development/ocaml-modules/lwt/ppx.nix6
3 files changed, 5 insertions, 63 deletions
diff --git a/nixpkgs/pkgs/development/ocaml-modules/lwt/4.x.nix b/nixpkgs/pkgs/development/ocaml-modules/lwt/default.nix
index a809e68000f..759f0deedf1 100644
--- a/nixpkgs/pkgs/development/ocaml-modules/lwt/4.x.nix
+++ b/nixpkgs/pkgs/development/ocaml-modules/lwt/default.nix
@@ -7,11 +7,11 @@ let inherit (lib) optional versionAtLeast; in
buildDunePackage rec {
pname = "lwt";
- version = "4.5.0";
+ version = "5.3.0";
src = fetchzip {
url = "https://github.com/ocsigen/${pname}/archive/${version}.tar.gz";
- sha256 = "0l836z5zr38969bi77aga7ismj4wb01i3ffxf5v59jsgd3g44r2w";
+ sha256 = "15hgy3220m2b8imipa514n7l65m1h5lc6l1hanqwwvs7ghh2aqp2";
};
nativeBuildInputs = [ pkgconfig ];
diff --git a/nixpkgs/pkgs/development/ocaml-modules/lwt/legacy.nix b/nixpkgs/pkgs/development/ocaml-modules/lwt/legacy.nix
deleted file mode 100644
index 795baa0467e..00000000000
--- a/nixpkgs/pkgs/development/ocaml-modules/lwt/legacy.nix
+++ /dev/null
@@ -1,58 +0,0 @@
-{ stdenv, buildOcaml, fetchzip, which, cryptopp, ocaml, findlib, ocamlbuild, camlp4
-, react, ssl, libev, pkgconfig, ncurses, glib
-, ppx_tools, result, cppo
-, ppxSupport ? stdenv.lib.versionAtLeast ocaml.version "4.02"
-, version ? if stdenv.lib.versionAtLeast ocaml.version "4.02" then "2.7.1" else "2.6.0"
-}:
-
-if !stdenv.lib.versionAtLeast ocaml.version "4"
- || stdenv.lib.versionAtLeast ocaml.version "4.06"
-then throw "lwt is not available for OCaml ${ocaml.version}"
-else
-
-let sha256 = {
- "3.0.0" = "0wwhnl9hppixcsdisinj1wmffx0nv6hkpm01z9qvkngkrazi3i88";
- "2.7.1" = "0w7f59havrl2fsnvs84lm7wlqpsrldg80gy5afpnpr21zkw22g8w";
- "2.6.0" = "0f1h83zh60rspm4fxd96z9h5bkhq1n1q968hgq92sq4a6bfi1c2w";
-}.${version}; in
-
-let optionals = stdenv.lib.optionals (!stdenv.lib.versionAtLeast version "3"); in
-
-buildOcaml {
- name = "lwt";
- inherit version;
-
- src = fetchzip {
- url = "https://github.com/ocsigen/lwt/archive/${version}.tar.gz";
- inherit sha256;
- };
-
- nativeBuildInputs = [ pkgconfig ];
- buildInputs = [ which cryptopp ocaml findlib ocamlbuild glib ncurses camlp4 cppo ]
- ++ stdenv.lib.optional ppxSupport ppx_tools;
-
- propagatedBuildInputs = [ result ]
- ++ optionals [ react ssl ]
- ++ [ libev ];
-
- configureScript = "ocaml setup.ml -configure";
- prefixKey = "--prefix ";
- configureFlags =
- optionals [ "--enable-glib" "--enable-ssl" "--enable-react" ]
- ++ [ "--enable-camlp4" ]
- ++ [ (if ppxSupport then "--enable-ppx" else "--disable-ppx") ];
-
- createFindlibDestdir = true;
-
- hasSharedObjects = true;
-
- meta = with stdenv.lib; {
- homepage = "http://ocsigen.org/lwt";
- description = "Lightweight thread library for Objective Caml";
- license = licenses.lgpl21;
- platforms = ocaml.meta.platforms or [];
- maintainers = with maintainers; [
- maggesi vbgl gal_bolle
- ];
- };
-}
diff --git a/nixpkgs/pkgs/development/ocaml-modules/lwt/ppx.nix b/nixpkgs/pkgs/development/ocaml-modules/lwt/ppx.nix
index 3cf4541aa01..f2707064f2a 100644
--- a/nixpkgs/pkgs/development/ocaml-modules/lwt/ppx.nix
+++ b/nixpkgs/pkgs/development/ocaml-modules/lwt/ppx.nix
@@ -2,7 +2,7 @@
buildDunePackage {
pname = "lwt_ppx";
- version = "1.2.4";
+ version = "2.0.1";
src = fetchzip {
# `lwt_ppx` has a different release cycle than Lwt, but it's included in
@@ -12,8 +12,8 @@ buildDunePackage {
#
# This is particularly useful for overriding Lwt without breaking `lwt_ppx`,
# as new Lwt releases may contain broken `lwt_ppx` code.
- url = "https://github.com/ocsigen/lwt/archive/4.4.0.tar.gz";
- sha256 = "1l97zdcql7y13fhaq0m9n9xvxf712jg0w70r72fvv6j49xm4nlhi";
+ url = "https://github.com/ocsigen/lwt/archive/5.2.0.tar.gz";
+ sha256 = "1znw8ckwdmqsnrcgar4g33zgr659l4l904bllrz69bbwdnfmz2x3";
};