···1+{ stdenv, fetchurl, ocaml, findlib }:
2+3+stdenv.mkDerivation {
4+5+ name = "ansiterminal-0.6.5";
6+7+ src = fetchurl {
8+ url = "https://forge.ocamlcore.org/frs/download.php/1206/ANSITerminal-0.6.5.tar.gz";
9+ sha256 = "1j9kflv2i16vf9hy031cl6z8hv6791mjbhnd9bw07y1pswdlx1r6";
10+ };
11+12+ buildInputs = [ ocaml findlib ];
13+14+ configurePhase = "ocaml setup.ml -configure --prefix $out";
15+16+ buildPhase = "ocaml setup.ml -build";
17+18+ installPhase = "ocaml setup.ml -install";
19+20+ createFindlibDestdir = true;
21+22+ meta = with stdenv.lib; {
23+ homepage = "https://forge.ocamlcore.org/projects/ansiterminal";
24+ description = "A module allowing to use the colors and cursor movements on ANSI terminals";
25+ longDescription = ''
26+ ANSITerminal is a module allowing to use the colors and cursor
27+ movements on ANSI terminals. It also works on the windows shell (but
28+ this part is currently work in progress).
29+ '';
30+ license = licenses.lgpl3;
31+ platforms = ocaml.meta.platforms;
32+ maintainers = [ maintainers.jirkamarsik ];
33+ };
34+}