3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/ocaml/ocaml-top/default.nix
Vincent Laporte fd018bdadd
ocamlPackages.ocp-build: remove spurious dependency to camlp4
Change attribute name from “ocpBuild” to “ocp-build”.
2018-06-26 20:14:57 +00:00

32 lines
848 B
Nix

{ stdenv, fetchzip, ncurses
, ocamlPackages
, jbuilder }:
stdenv.mkDerivation {
name = "ocaml-top-1.1.4";
src = fetchzip {
url = https://github.com/OCamlPro/ocaml-top/archive/1.1.4.tar.gz;
sha256 = "1lmzjmnzsg8xdz0q5nm95zclihi9z80kzsalapg0s9wq0id8qm4j";
};
buildInputs = [ ncurses jbuilder ]
++ (with ocamlPackages; [ ocaml ocp-build findlib lablgtk ocp-index ]);
configurePhase = ''
export TERM=xterm
ocp-build -init
'';
buildPhase = "jbuilder build";
inherit (jbuilder) installPhase;
meta = {
homepage = https://www.typerex.org/ocaml-top.html;
license = stdenv.lib.licenses.gpl3;
description = "A simple cross-platform OCaml code editor built for top-level evaluation";
platforms = ocamlPackages.ocaml.meta.platforms or [];
maintainers = with stdenv.lib.maintainers; [ vbgl ];
};
}