2016-09-19 19:00:42 +02:00
|
|
|
{ stdenv, fetchzip, ncurses
|
2017-03-14 08:55:34 +01:00
|
|
|
, ocamlPackages
|
2018-09-05 18:11:47 +02:00
|
|
|
, dune
|
|
|
|
}:
|
2015-02-14 10:29:41 +01:00
|
|
|
|
2018-06-27 21:02:47 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "1.1.5";
|
|
|
|
name = "ocaml-top-${version}";
|
2015-02-14 10:29:41 +01:00
|
|
|
src = fetchzip {
|
2018-06-27 21:02:47 +02:00
|
|
|
url = "https://github.com/OCamlPro/ocaml-top/archive/${version}.tar.gz";
|
|
|
|
sha256 = "1d4i6aanrafgrgk4mh154k6lkwk0b6mh66rykz33awlf5pfqd8yv";
|
2015-02-14 10:29:41 +01:00
|
|
|
};
|
|
|
|
|
2018-09-05 18:11:47 +02:00
|
|
|
buildInputs = [ ncurses dune ]
|
2018-06-26 07:19:44 +02:00
|
|
|
++ (with ocamlPackages; [ ocaml ocp-build findlib lablgtk ocp-index ]);
|
2015-02-14 10:29:41 +01:00
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
export TERM=xterm
|
|
|
|
ocp-build -init
|
|
|
|
'';
|
|
|
|
|
2017-07-16 12:42:45 +02:00
|
|
|
buildPhase = "jbuilder build";
|
2015-02-14 10:29:41 +01:00
|
|
|
|
2018-09-05 18:11:47 +02:00
|
|
|
inherit (dune) installPhase;
|
2015-02-14 10:29:41 +01:00
|
|
|
|
|
|
|
meta = {
|
2018-01-05 20:42:46 +01:00
|
|
|
homepage = https://www.typerex.org/ocaml-top.html;
|
2015-02-14 10:29:41 +01:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|