@@ -1,21 +1,24 @@
1−{ stdenv, buildOcaml, fetchurl, libev, ocaml, findlib, ocamlbuild, ocaml_lwt, ocaml_react, zed }:
1+{ stdenv, buildOcaml, fetchurl, libev, ocaml, findlib, jbuilder, opam, zed, lwt_react }:
22
3−assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.01";
3+assert stdenv.lib.versionAtLeast ocaml.version "4.02";
44
55buildOcaml rec {
6− version = "1.10";
6+ version = "1.11";
77 name = "lambda-term";
88
99 src = fetchurl {
1010 url = "https://github.com/diml/lambda-term/archive/${version}.tar.gz";
11− sha256 = "1kwpsqds51xmy3z3ddkam92hkl7arlzy9awhzsq62ysxcl91fb8m";
11+ sha256 = "10lx1jqgmmfwwlv64di4a8nia9l53v7179z70n9fx6aq5l7r8nba";
1212 };
1313
14− buildInputs = [ libev ocaml findlib ocamlbuild ocaml_react ];
14+ buildInputs = [ libev ocaml findlib jbuilder opam ];
1515
16− propagatedBuildInputs = [ zed ocaml_lwt ];
16+ propagatedBuildInputs = [ zed lwt_react ];
1717
18− createFindlibDestdir = true;
18+ installPhase = ''
19+ ${jbuilder.installPhase}
20+ mv $out/lib/ocaml/${ocaml.version}/site-lib/{stubslibs,lambda-term}/dlllambda_term_stubs.so
21+ '';
1922
2023 hasSharedObjects = true;
2124