···11+{ stdenv, fetchurl, ocaml, findlib }:
22+33+stdenv.mkDerivation {
44+55+ name = "ansiterminal-0.6.5";
66+77+ src = fetchurl {
88+ url = "https://forge.ocamlcore.org/frs/download.php/1206/ANSITerminal-0.6.5.tar.gz";
99+ sha256 = "1j9kflv2i16vf9hy031cl6z8hv6791mjbhnd9bw07y1pswdlx1r6";
1010+ };
1111+1212+ buildInputs = [ ocaml findlib ];
1313+1414+ configurePhase = "ocaml setup.ml -configure --prefix $out";
1515+1616+ buildPhase = "ocaml setup.ml -build";
1717+1818+ installPhase = "ocaml setup.ml -install";
1919+2020+ createFindlibDestdir = true;
2121+2222+ meta = with stdenv.lib; {
2323+ homepage = "https://forge.ocamlcore.org/projects/ansiterminal";
2424+ description = "A module allowing to use the colors and cursor movements on ANSI terminals";
2525+ longDescription = ''
2626+ ANSITerminal is a module allowing to use the colors and cursor
2727+ movements on ANSI terminals. It also works on the windows shell (but
2828+ this part is currently work in progress).
2929+ '';
3030+ license = licenses.lgpl3;
3131+ platforms = ocaml.meta.platforms;
3232+ maintainers = [ maintainers.jirkamarsik ];
3333+ };
3434+}