2014-11-03 11:55:12 +00:00
|
|
|
{stdenv, fetchurl, libiconvOrNull, ocaml, findlib, ncurses}:
|
2014-05-15 10:02:32 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ocaml-text-0.6";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = https://forge.ocamlcore.org/frs/download.php/937/ocaml-text-0.6.tar.gz;
|
|
|
|
sha256 = "0j8gaak0ajnlmn8knvfygqwwzs7awjv5rfn5cbj6qxqbxhjd5m6g";
|
|
|
|
};
|
|
|
|
|
2014-11-03 11:55:12 +00:00
|
|
|
buildInputs = [ocaml findlib ncurses]
|
|
|
|
++ stdenv.lib.optional (libiconvOrNull != null) libiconvOrNull;
|
2014-05-15 10:02:32 +01:00
|
|
|
|
2014-11-03 11:55:12 +00:00
|
|
|
configurePhase =
|
|
|
|
(stdenv.lib.optionalString (libiconvOrNull != null) "iconv_prefix=${libiconvOrNull} ")
|
|
|
|
+ "ocaml setup.ml -configure";
|
2014-05-15 10:02:32 +01:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://ocaml-text.forge.ocamlcore.org/";
|
|
|
|
description = "OCaml-Text is a library for dealing with ``text'', i.e. sequence of unicode characters, in a convenient way. ";
|
2014-11-03 11:55:12 +00:00
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2014-05-15 10:02:32 +01:00
|
|
|
platforms = ocaml.meta.platforms;
|
|
|
|
};
|
|
|
|
}
|