@@ -1,23 +1,24 @@
11{stdenv, fetchurl, ocaml, findlib, lambdaTerm, ocaml_lwt, makeWrapper,
2− ocaml_react, camomile, zed, cppo, camlp4
2+ ocaml_react, camomile, zed, cppo, camlp4, ppx_tools
33}:
44
55stdenv.mkDerivation rec {
6− version = "1.17";
6+ version = "1.19.2";
77 name = "utop-${version}";
88
99 src = fetchurl {
1010 url = "https://github.com/diml/utop/archive/${version}.tar.gz";
11− sha256 = "0l9lz2nypl2ls3kqzmp738m02yvscabhsfpj70ckp0p98pimnnfd";
11+ sha256 = "0hxybkqmrh0sz1yyyrgzdmxp46gda4vk22pv07s0qpfg2dpv56jh";
1212 };
1313
14− buildInputs = [ ocaml findlib makeWrapper cppo camlp4 ];
14+ buildInputs = [ ocaml findlib makeWrapper cppo camlp4 ppx_tools ];
1515
1616 propagatedBuildInputs = [ lambdaTerm ocaml_lwt ];
1717
1818 createFindlibDestdir = true;
1919
20− configureFlags = "--enable-camlp4";
20+ configureFlags = [ "--enable-camlp4" ]
21+ ++ stdenv.lib.optional (ppx_tools != null) "--enable-interact";
2122
2223 buildPhase = ''
2324 make