3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/ocaml/ocaml-top/default.nix
2016-02-10 14:59:50 +01:00

32 lines
893 B
Nix

{ stdenv, fetchzip, ncurses, ocamlPackages, opam }:
stdenv.mkDerivation {
name = "ocaml-top-1.1.2";
src = fetchzip {
url = https://github.com/OCamlPro/ocaml-top/archive/1.1.2.tar.gz;
sha256 = "10wfz8d6c1lbh31kayvlb5fj7qmgh5c6xhs3q595dnf9skrf091j";
};
buildInputs = [ ncurses opam ]
++ (with ocamlPackages; [ ocaml ocpBuild findlib lablgtk ocp-index ]);
configurePhase = ''
export TERM=xterm
ocp-build -init
'';
buildPhase = "ocp-build ocaml-top";
installPhase = ''
opam-installer --script --prefix=$out ocaml-top.install | sh
'';
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";
platforms = ocamlPackages.ocaml.meta.platforms;
maintainers = with stdenv.lib.maintainers; [ vbgl ];
};
}