d2947cfef0
GitOrigin-RevId: 598f83ebeb2235435189cf84d844b8b73e858e0f
32 lines
834 B
Nix
32 lines
834 B
Nix
{ lib, fetchFromGitHub, ncurses, ocamlPackages }:
|
|
|
|
with ocamlPackages; buildDunePackage rec {
|
|
pname = "ocaml-top";
|
|
version = "1.2.0-rc";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "OCamlPro";
|
|
repo = "ocaml-top";
|
|
rev = version;
|
|
sha256 = "sha256-ZXnPnPvJmHshkTwYWeBojrgJYAF/R6vUo0XkvVMFSeQ=";
|
|
};
|
|
|
|
buildInputs = [ ncurses ocp-build lablgtk3-sourceview3 ocp-index ];
|
|
|
|
configurePhase = ''
|
|
export TERM=xterm
|
|
ocp-build -init
|
|
'';
|
|
|
|
postPatch = ''
|
|
substituteInPlace src/completion.ml \
|
|
--replace 'LibIndex.load ' 'LibIndex.load ~qualify:false '
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://www.typerex.org/ocaml-top.html";
|
|
license = lib.licenses.gpl3;
|
|
description = "A simple cross-platform OCaml code editor built for top-level evaluation";
|
|
maintainers = with lib.maintainers; [ vbgl ];
|
|
};
|
|
}
|