Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

ocamlPackages.ocaml_lwt: 3.3.0 -> 4.1.0

authored by

Vincent Laporte and committed by
Vincent Laporte
bdaedbe3 4b1f2fb0

+82 -18
+2 -2
pkgs/development/ocaml-modules/cohttp/lwt.nix
··· 1 - { stdenv, ocaml, findlib, dune, cohttp, lwt3, uri, ppx_sexp_conv }: 1 + { stdenv, ocaml, findlib, dune, cohttp, ocaml_lwt, uri, ppx_sexp_conv }: 2 2 3 3 if !stdenv.lib.versionAtLeast cohttp.version "0.99" 4 4 then cohttp ··· 10 10 11 11 buildInputs = [ ocaml findlib dune uri ppx_sexp_conv ]; 12 12 13 - propagatedBuildInputs = [ cohttp lwt3 ]; 13 + propagatedBuildInputs = [ cohttp ocaml_lwt ]; 14 14 15 15 buildPhase = "dune build -p cohttp-lwt"; 16 16 }
+2 -2
pkgs/development/ocaml-modules/conduit/lwt.nix
··· 1 - { stdenv, ocaml, findlib, dune, ppx_sexp_conv, conduit, lwt3 }: 1 + { stdenv, ocaml, findlib, dune, ppx_sexp_conv, conduit, ocaml_lwt }: 2 2 3 3 if !stdenv.lib.versionAtLeast conduit.version "1.0" 4 4 then conduit ··· 10 10 11 11 buildInputs = [ ocaml findlib dune ppx_sexp_conv ]; 12 12 13 - propagatedBuildInputs = [ conduit lwt3 ]; 13 + propagatedBuildInputs = [ conduit ocaml_lwt ]; 14 14 15 15 buildPhase = "dune build -p conduit-lwt"; 16 16 }
+35
pkgs/development/ocaml-modules/lwt/4.x.nix
··· 1 + { stdenv, fetchzip, pkgconfig, ncurses, libev, dune 2 + , ocaml, findlib, cppo 3 + , ocaml-migrate-parsetree, ppx_tools_versioned, result 4 + }: 5 + 6 + let inherit (stdenv.lib) optional versionAtLeast; in 7 + 8 + stdenv.mkDerivation rec { 9 + version = "4.1.0"; 10 + name = "ocaml${ocaml.version}-lwt-${version}"; 11 + 12 + src = fetchzip { 13 + url = "https://github.com/ocsigen/lwt/archive/${version}.tar.gz"; 14 + sha256 = "16wnc61kfj54z4q8sn9f5iik37pswz328hcz3z6rkza3kh3s6wmm"; 15 + }; 16 + 17 + nativeBuildInputs = [ pkgconfig ]; 18 + buildInputs = [ ocaml findlib dune cppo 19 + ocaml-migrate-parsetree ppx_tools_versioned 20 + ] ++ optional (!versionAtLeast ocaml.version "4.07") ncurses; 21 + propagatedBuildInputs = [ libev result ]; 22 + 23 + configurePhase = "ocaml src/util/configure.ml -use-libev true"; 24 + buildPhase = "jbuilder build -p lwt"; 25 + inherit (dune) installPhase; 26 + 27 + meta = { 28 + homepage = "https://ocsigen.org/lwt/"; 29 + description = "A cooperative threads library for OCaml"; 30 + maintainers = [ stdenv.lib.maintainers.vbgl ]; 31 + license = stdenv.lib.licenses.lgpl21; 32 + inherit (ocaml.meta) platforms; 33 + }; 34 + } 35 +
pkgs/development/ocaml-modules/lwt/default.nix pkgs/development/ocaml-modules/lwt/3.x.nix
+12 -3
pkgs/development/ocaml-modules/lwt_log/default.nix
··· 1 - { stdenv, ocaml, findlib, dune, lwt }: 1 + { stdenv, fetchFromGitHub, ocaml, findlib, dune, lwt }: 2 + 3 + if !stdenv.lib.versionAtLeast ocaml.version "4.02" 4 + then throw "lwt_log is not available for OCaml ${ocaml.version}" 5 + else 2 6 3 7 stdenv.mkDerivation rec { 4 - version = "1.0.0"; 8 + version = "1.1.0"; 5 9 name = "ocaml${ocaml.version}-lwt_log-${version}"; 6 10 7 - inherit (lwt) src; 11 + src = fetchFromGitHub { 12 + owner = "aantron"; 13 + repo = "lwt_log"; 14 + rev = version; 15 + sha256 = "1c58gkqfvyf2j11jwj2nh4iq999wj9xpnmr80hz9d0nk9fv333pi"; 16 + }; 8 17 9 18 buildInputs = [ ocaml findlib dune ]; 10 19
+4
pkgs/development/ocaml-modules/lwt_ssl/default.nix
··· 1 1 { stdenv, fetchzip, ocaml, findlib, dune, ssl, lwt }: 2 2 3 + if !stdenv.lib.versionAtLeast ocaml.version "4.02" 4 + then throw "lwt_ssl is not available for OCaml ${ocaml.version}" 5 + else 6 + 3 7 stdenv.mkDerivation rec { 4 8 version = "1.1.2"; 5 9 name = "ocaml${ocaml.version}-lwt_ssl-${version}";
+2 -2
pkgs/development/ocaml-modules/ojquery/default.nix
··· 1 - { stdenv, fetchgit, ocaml, findlib, ocamlbuild, js_of_ocaml, js_of_ocaml-camlp4, camlp4, lwt3, react }: 1 + { stdenv, fetchgit, ocaml, findlib, ocamlbuild, js_of_ocaml, js_of_ocaml-camlp4, camlp4, ocaml_lwt, react }: 2 2 3 3 if stdenv.lib.versionAtLeast ocaml.version "4.06" 4 4 then throw "ojquery is not available for OCaml ${ocaml.version}" ··· 14 14 }; 15 15 16 16 buildInputs = [ ocaml findlib ocamlbuild js_of_ocaml-camlp4 camlp4 ]; 17 - propagatedBuildInputs = [ js_of_ocaml lwt3 react ]; 17 + propagatedBuildInputs = [ js_of_ocaml ocaml_lwt react ]; 18 18 19 19 createFindlibDestdir = true; 20 20
+25 -9
pkgs/top-level/ocaml-packages.nix
··· 238 238 239 239 easy-format = callPackage ../development/ocaml-modules/easy-format { }; 240 240 241 - eliom = callPackage ../development/ocaml-modules/eliom { }; 241 + eliom = callPackage ../development/ocaml-modules/eliom { 242 + js_of_ocaml-lwt = js_of_ocaml-lwt.override { 243 + ocaml_lwt = lwt3; 244 + lwt_log = lib.overrideDerivation 245 + (lwt_log.override { lwt = lwt3; }) 246 + (_: { inherit (lwt3) src; }); 247 + }; 248 + lwt_react = lwt_react.override { lwt = lwt3; }; 249 + lwt_ssl = lwt_ssl.override { lwt = lwt3; }; 250 + }; 242 251 243 252 elpi = callPackage ../development/ocaml-modules/elpi { }; 244 253 ··· 401 410 lwt2 = callPackage ../development/ocaml-modules/lwt/legacy.nix { }; 402 411 403 412 lwt3 = if lib.versionOlder "4.02" ocaml.version 404 - then callPackage ../development/ocaml-modules/lwt { } 413 + then callPackage ../development/ocaml-modules/lwt/3.x.nix { } 405 414 else throw "lwt3 is not available for OCaml ${ocaml.version}"; 406 415 407 - ocaml_lwt = if lib.versionOlder "4.02" ocaml.version then lwt3 else lwt2; 416 + lwt4 = callPackage ../development/ocaml-modules/lwt/4.x.nix { }; 417 + 418 + ocaml_lwt = if lib.versionOlder "4.02" ocaml.version then lwt4 else lwt2; 408 419 409 420 lwt_log = callPackage ../development/ocaml-modules/lwt_log { 410 - lwt = lwt3; 421 + lwt = lwt4; 411 422 }; 412 423 413 424 lwt_ppx = callPackage ../development/ocaml-modules/lwt/ppx.nix { 414 - lwt = lwt3; 425 + lwt = ocaml_lwt; 415 426 }; 416 427 417 428 lwt_react = callPackage ../development/ocaml-modules/lwt_react { 418 - lwt = lwt3; 429 + lwt = ocaml_lwt; 419 430 }; 420 431 421 432 lwt_ssl = callPackage ../development/ocaml-modules/lwt_ssl { 422 - lwt = lwt3; 433 + lwt = ocaml_lwt; 423 434 }; 424 435 425 436 macaque = callPackage ../development/ocaml-modules/macaque { }; ··· 535 546 536 547 ocplib-simplex = callPackage ../development/ocaml-modules/ocplib-simplex { }; 537 548 538 - ocsigen_server = callPackage ../development/ocaml-modules/ocsigen-server { }; 549 + ocsigen_server = callPackage ../development/ocaml-modules/ocsigen-server { 550 + lwt_react = lwt_react.override { lwt = lwt3; }; 551 + lwt_ssl = lwt_ssl.override { lwt = lwt3; }; 552 + }; 539 553 540 554 ocsigen-start = callPackage ../development/ocaml-modules/ocsigen-start { }; 541 555 ··· 545 559 546 560 odoc = callPackage ../development/ocaml-modules/odoc { }; 547 561 548 - ojquery = callPackage ../development/ocaml-modules/ojquery { }; 562 + ojquery = callPackage ../development/ocaml-modules/ojquery { 563 + ocaml_lwt = lwt3; 564 + }; 549 565 550 566 omd = callPackage ../development/ocaml-modules/omd { }; 551 567