2016-09-19 19:00:42 +02:00
|
|
|
{ stdenv, fetchzip, ncurses
|
2017-03-14 08:55:34 +01:00
|
|
|
, ocamlPackages
|
2016-09-19 19:00:42 +02:00
|
|
|
, opam }:
|
2015-02-14 10:29:41 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2017-03-14 08:55:34 +01:00
|
|
|
name = "ocaml-top-1.1.3";
|
2015-02-14 10:29:41 +01:00
|
|
|
src = fetchzip {
|
2017-03-14 08:55:34 +01:00
|
|
|
url = https://github.com/OCamlPro/ocaml-top/archive/1.1.3.tar.gz;
|
|
|
|
sha256 = "0islyinv7lwhg8hkg4xn30wwz1nv50rj0wpsis8jpimw6jdsnax3";
|
2015-02-14 10:29:41 +01:00
|
|
|
};
|
|
|
|
|
2017-03-14 08:55:34 +01:00
|
|
|
buildInputs = [ ncurses opam ]
|
|
|
|
++ (with ocamlPackages; [ ocaml ocpBuild findlib lablgtk ocp-index ]);
|
2015-02-14 10:29:41 +01:00
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
export TERM=xterm
|
|
|
|
ocp-build -init
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = "ocp-build ocaml-top";
|
|
|
|
|
2017-03-14 08:55:34 +01:00
|
|
|
installPhase = "opam-installer --prefix=$out";
|
2015-02-14 10:29:41 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.typerex.org/ocaml-top.html;
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
description = "A simple cross-platform OCaml code editor built for top-level evaluation";
|
2017-03-14 08:55:34 +01:00
|
|
|
platforms = ocamlPackages.ocaml.meta.platforms or [];
|
2016-02-10 14:59:36 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ vbgl ];
|
2015-02-14 10:29:41 +01:00
|
|
|
};
|
|
|
|
}
|