git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages: make lwt-3.0.0 the default
commitdbe61c96ae778f21cb9111198d68eab3088cd27c authorVincent Laporte <Vincent.Laporte@gmail.com> dateSun 2 Jul 2017, 15:22 (9 years ago) parente4ca35a
5 files changed+20−18
pkgs/development/ocaml-modules/eliom/default.nix+2−2 pkgs/development/ocaml-modules/lambda-term/1.6.nix+2−2 pkgs/development/ocaml-modules/ocsigen-server/default.nix+3−3 pkgs/development/tools/ocaml/js_of_ocaml/default.nix+2−2 pkgs/top-level/ocaml-packages.nix+11−9
pkgs/development/ocaml-modules/eliom/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, which, ocsigen_server, ocsigen_deriving, ocaml,
2− js_of_ocaml, ocaml_react, ocaml_lwt, calendar, cryptokit, tyxml,
2+ js_of_ocaml, ocaml_react, lwt, calendar, cryptokit, tyxml,
33 ipaddr, ocamlnet, ocaml_ssl, ocaml_pcre, ocaml_optcomp,
44 reactivedata, opam, ppx_tools, ppx_deriving, findlib
55, ocamlbuild
@@ -22,7 +22,7 @@ stdenv.mkDerivation rec
2222
2323 buildInputs = [ ocaml which findlib ocamlbuild ocaml_optcomp opam ppx_tools ];
2424
25− propagatedBuildInputs = [ ocaml_lwt reactivedata tyxml ipaddr ocsigen_server ppx_deriving
25+ propagatedBuildInputs = [ lwt reactivedata tyxml ipaddr ocsigen_server ppx_deriving
2626 ocsigen_deriving js_of_ocaml
2727 calendar cryptokit ocamlnet ocaml_react ocaml_ssl ocaml_pcre ];
2828
pkgs/development/ocaml-modules/lambda-term/1.6.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, libev, ocaml, findlib, ocamlbuild, ocaml_lwt, ocaml_react, zed, camlp4 }:
1+{ stdenv, fetchurl, libev, ocaml, findlib, ocamlbuild, lwt, ocaml_react, zed, camlp4 }:
22
33stdenv.mkDerivation rec {
44 version = "1.6";
@@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
99 sha256 = "1rhfixdgpylxznf6sa9wr31wb4pjzpfn5mxhxqpbchmpl2afwa09";
1010 };
1111
12− buildInputs = [ libev ocaml findlib ocamlbuild ocaml_lwt ocaml_react ];
12+ buildInputs = [ libev ocaml findlib ocamlbuild lwt ocaml_react ];
1313
1414 propagatedBuildInputs = [ camlp4 zed ];
1515
pkgs/development/ocaml-modules/ocsigen-server/default.nix+3−3
@@ -1,5 +1,5 @@
11{stdenv, fetchurl, ocaml, findlib, which, ocaml_react, ocaml_ssl,
2−ocaml_lwt, ocamlnet, ocaml_pcre, cryptokit, tyxml, ipaddr, zlib,
2+lwt, ocamlnet, ocaml_pcre, cryptokit, tyxml, ipaddr, zlib,
33libev, openssl, ocaml_sqlite3, tree, uutf, makeWrapper, camlp4
44, pgocaml
55}:
@@ -17,7 +17,7 @@ stdenv.mkDerivation {
1717 sha256 = "1v44qv2ixd7i1qinyhlzzqiffawsdl7xhhh6ysd7lf93kh46d5sy";
1818 };
1919
20− buildInputs = [ocaml which findlib ocaml_react ocaml_ssl ocaml_lwt
20+ buildInputs = [ocaml which findlib ocaml_react ocaml_ssl lwt
2121 ocamlnet ocaml_pcre cryptokit tyxml ipaddr zlib libev openssl
2222 ocaml_sqlite3 tree uutf makeWrapper camlp4 pgocaml ];
2323
@@ -31,7 +31,7 @@ stdenv.mkDerivation {
3131 ''
3232 rm -rf $out/var/run
3333 wrapProgram $out/bin/ocsigenserver \
34− --prefix CAML_LD_LIBRARY_PATH : "${mkpath ocaml_ssl "ssl"}:${mkpath ocaml_lwt "lwt"}:${mkpath ocamlnet "netsys"}:${mkpath ocamlnet "netstring"}:${mkpath ocaml_pcre "pcre"}:${mkpath cryptokit "cryptokit"}:${mkpath ocaml_sqlite3 "sqlite3"}"
34+ --prefix CAML_LD_LIBRARY_PATH : "${mkpath ocaml_ssl "ssl"}:${mkpath lwt "lwt"}:${mkpath ocamlnet "netsys"}:${mkpath ocamlnet "netstring"}:${mkpath ocaml_pcre "pcre"}:${mkpath cryptokit "cryptokit"}:${mkpath ocaml_sqlite3 "sqlite3"}"
3535 '';
3636
3737 dontPatchShebangs = true;
pkgs/development/tools/ocaml/js_of_ocaml/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, ocaml, findlib, ocaml_lwt, menhir, ocsigen_deriving, ppx_deriving, camlp4, ocamlbuild
1+{ stdenv, fetchurl, ocaml, findlib, lwt, menhir, ocsigen_deriving, ppx_deriving, camlp4, ocamlbuild
22, cmdliner, tyxml, reactivedata, cppo, which, base64, uchar, yojson
33}:
44
@@ -19,7 +19,7 @@ stdenv.mkDerivation {
1919 buildInputs = [ ocaml findlib menhir ocsigen_deriving ocamlbuild
2020 cmdliner reactivedata cppo which base64 ]
2121 ++ stdenv.lib.optionals (stdenv.lib.versionAtLeast ocaml.version "4.02") [ yojson tyxml ];
22− propagatedBuildInputs = [ ocaml_lwt camlp4 ppx_deriving ]
22+ propagatedBuildInputs = [ lwt camlp4 ppx_deriving ]
2323 ++ stdenv.lib.optional (version == "2.8.4") uchar;
2424
2525 patches = [ ./Makefile.conf.diff ];
pkgs/top-level/ocaml-packages.nix+11−9
@@ -129,7 +129,7 @@ let
129129 cmdliner_1_0 = callPackage ../development/ocaml-modules/cmdliner/1.0.nix { };
130130
131131 cohttp_p4 = callPackage ../development/ocaml-modules/cohttp/0.19.3.nix {
132− lwt = ocaml_lwt;
132+ lwt = lwt2;
133133 };
134134
135135 cohttp =
@@ -138,7 +138,7 @@ let
138138 else cohttp_p4;
139139
140140 conduit_p4 = callPackage ../development/ocaml-modules/conduit/0.10.0.nix {
141− lwt = ocaml_lwt;
141+ lwt = lwt2;
142142 };
143143
144144 conduit =
@@ -182,7 +182,7 @@ let
182182
183183 eff = callPackage ../development/interpreters/eff { };
184184
185− eliom = callPackage ../development/ocaml-modules/eliom { };
185+ eliom = callPackage ../development/ocaml-modules/eliom { lwt = lwt2; };
186186
187187 enumerate = callPackage ../development/ocaml-modules/enumerate { };
188188
@@ -266,7 +266,7 @@ let
266266 pcre = ocaml_pcre;
267267 };
268268
269− js_of_ocaml = callPackage ../development/tools/ocaml/js_of_ocaml { };
269+ js_of_ocaml = callPackage ../development/tools/ocaml/js_of_ocaml { lwt = lwt2; };
270270
271271 jsonm = callPackage ../development/ocaml-modules/jsonm { };
272272
@@ -288,7 +288,7 @@ let
288288 gtkmathview = callPackage ../development/libraries/gtkmathview { };
289289 };
290290
291− lambdaTerm-1_6 = callPackage ../development/ocaml-modules/lambda-term/1.6.nix { };
291+ lambdaTerm-1_6 = callPackage ../development/ocaml-modules/lambda-term/1.6.nix { lwt = lwt2; };
292292 lambdaTerm =
293293 if lib.versionOlder "4.02" ocaml.version
294294 then callPackage ../development/ocaml-modules/lambda-term { }
@@ -302,12 +302,16 @@ let
302302 lwt = ocaml_lwt;
303303 };
304304
305+ lwt2 = callPackage ../development/ocaml-modules/lwt { };
306+
305307 lwt3 = if lib.versionOlder "4.02" ocaml.version
306308 then callPackage ../development/ocaml-modules/lwt {
307309 version = "3.0.0";
308310 }
309311 else throw "lwt3 is not available for OCaml ${ocaml.version}";
310312
313+ ocaml_lwt = if lib.versionOlder "4.02" ocaml.version then lwt3 else lwt2;
314+
311315 lwt_react = callPackage ../development/ocaml-modules/lwt_react {
312316 lwt = lwt3;
313317 };
@@ -318,7 +322,7 @@ let
318322
319323 magick = callPackage ../development/ocaml-modules/magick { };
320324
321− markup = callPackage ../development/ocaml-modules/markup { lwt = ocaml_lwt; };
325+ markup = callPackage ../development/ocaml-modules/markup { lwt = lwt2; };
322326
323327 menhir = callPackage ../development/ocaml-modules/menhir { };
324328
@@ -382,8 +386,6 @@ let
382386
383387 ocamlify = callPackage ../development/tools/ocaml/ocamlify { };
384388
385− ocaml_lwt = callPackage ../development/ocaml-modules/lwt { };
386−
387389 ocaml-migrate-parsetree = callPackage ../development/ocaml-modules/ocaml-migrate-parsetree { };
388390
389391 ocamlmod = callPackage ../development/tools/ocaml/ocamlmod { };
@@ -431,7 +433,7 @@ let
431433
432434 ocplib-simplex = callPackage ../development/ocaml-modules/ocplib-simplex { };
433435
434− ocsigen_server = callPackage ../development/ocaml-modules/ocsigen-server { };
436+ ocsigen_server = callPackage ../development/ocaml-modules/ocsigen-server { lwt = lwt2; };
435437
436438 ocsigen-start = callPackage ../development/ocaml-modules/ocsigen-start { };
437439