2019-12-08 07:23:58 +00:00
|
|
|
{ lib, fetchzip, ncurses, ocamlPackages }:
|
2015-02-14 09:29:41 +00:00
|
|
|
|
2018-11-05 10:21:46 +00:00
|
|
|
with ocamlPackages; buildDunePackage rec {
|
|
|
|
pname = "ocaml-top";
|
2019-12-08 07:23:58 +00:00
|
|
|
version = "1.2.0-rc";
|
2018-11-05 10:21:46 +00:00
|
|
|
|
2021-02-13 08:36:18 +00:00
|
|
|
useDune2 = true;
|
|
|
|
|
2015-02-14 09:29:41 +00:00
|
|
|
src = fetchzip {
|
2018-06-27 19:02:47 +00:00
|
|
|
url = "https://github.com/OCamlPro/ocaml-top/archive/${version}.tar.gz";
|
2019-12-08 07:23:58 +00:00
|
|
|
sha256 = "1r290m9vvr25lgaanivz05h0kf4fd3h5j61wj4hpp669zffcyyb5";
|
2015-02-14 09:29:41 +00:00
|
|
|
};
|
|
|
|
|
2019-12-08 07:23:58 +00:00
|
|
|
buildInputs = [ ncurses ocp-build lablgtk3-sourceview3 ocp-index ];
|
2015-02-14 09:29:41 +00:00
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
export TERM=xterm
|
|
|
|
ocp-build -init
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.typerex.org/ocaml-top.html";
|
2019-12-08 07:23:58 +00:00
|
|
|
license = lib.licenses.gpl3;
|
2015-02-14 09:29:41 +00:00
|
|
|
description = "A simple cross-platform OCaml code editor built for top-level evaluation";
|
2019-12-08 07:23:58 +00:00
|
|
|
maintainers = with lib.maintainers; [ vbgl ];
|
2015-02-14 09:29:41 +00:00
|
|
|
};
|
|
|
|
}
|