@@ -1,15 +1,16 @@
11{ stdenv, fetchzip, ncurses
2−, ocaml, ocpBuild, findlib, lablgtk, ocp-index
2+, ocamlPackages
33, opam }:
44
55stdenv.mkDerivation {
6− name = "ocaml-top-1.1.2";
6+ name = "ocaml-top-1.1.3";
77 src = fetchzip {
8− url = https://github.com/OCamlPro/ocaml-top/archive/1.1.2.tar.gz;
9− sha256 = "10wfz8d6c1lbh31kayvlb5fj7qmgh5c6xhs3q595dnf9skrf091j";
8+ url = https://github.com/OCamlPro/ocaml-top/archive/1.1.3.tar.gz;
9+ sha256 = "0islyinv7lwhg8hkg4xn30wwz1nv50rj0wpsis8jpimw6jdsnax3";
1010 };
1111
12− buildInputs = [ ncurses opam ocaml ocpBuild findlib lablgtk ocp-index ];
12+ buildInputs = [ ncurses opam ]
13+ ++ (with ocamlPackages; [ ocaml ocpBuild findlib lablgtk ocp-index ]);
1314
1415 configurePhase = ''
1516 export TERM=xterm
@@ -18,15 +19,13 @@ stdenv.mkDerivation {
1819
1920 buildPhase = "ocp-build ocaml-top";
2021
21− installPhase = ''
22− opam-installer --script --prefix=$out ocaml-top.install | sh
23− '';
22+ installPhase = "opam-installer --prefix=$out";
2423
2524 meta = {
2625 homepage = http://www.typerex.org/ocaml-top.html;
2726 license = stdenv.lib.licenses.gpl3;
2827 description = "A simple cross-platform OCaml code editor built for top-level evaluation";
29− platforms = ocaml.meta.platforms or [];
28+ platforms = ocamlPackages.ocaml.meta.platforms or [];
3029 maintainers = with stdenv.lib.maintainers; [ vbgl ];
3130 };
3231}