···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+}
+41
pkgs/development/ocaml-modules/bolt/default.nix
···11+{ stdenv, fetchurl, ocaml, findlib, which }:
22+33+let inherit (stdenv.lib) getVersion versionAtLeast; in
44+55+assert versionAtLeast (getVersion ocaml) "4.00.0";
66+assert versionAtLeast (getVersion findlib) "1.3.3";
77+88+stdenv.mkDerivation rec {
99+1010+ name = "bolt-1.4";
1111+1212+ src = fetchurl {
1313+ url = "https://forge.ocamlcore.org/frs/download.php/1043/${name}.tar.gz";
1414+ sha256 = "1c807wrpxra9sbb34lajhimwra28ldxv04m570567lh2b04n38zy";
1515+ };
1616+1717+ buildInputs = [ ocaml findlib which ];
1818+1919+ # The custom `configure` script does not expect the --prefix
2020+ # option. Installation is handled by ocamlfind.
2121+ dontAddPrefix = true;
2222+2323+ createFindlibDestdir = true;
2424+2525+ buildFlags = "all";
2626+2727+ doCheck = true;
2828+ checkTarget = "tests";
2929+3030+ meta = with stdenv.lib; {
3131+ homepage = "http://bolt.x9c.fr";
3232+ description = "A logging tool for the OCaml language";
3333+ longDescription = ''
3434+ Bolt is a logging tool for the OCaml language. It is inspired by and
3535+ modeled after the famous log4j logging framework for Java.
3636+ '';
3737+ license = licenses.lgpl3;
3838+ platforms = ocaml.meta.platforms;
3939+ maintainers = [ maintainers.jirkamarsik ];
4040+ };
4141+}