2014-11-26 23:16:50 +00:00
|
|
|
{stdenv, fetchurl, libiconv, ocaml, findlib, ncurses}:
|
2014-05-15 10:02:32 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2015-07-06 23:42:15 +01:00
|
|
|
name = "ocaml-text-0.7.1";
|
2014-05-15 10:02:32 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-07-06 23:42:15 +01:00
|
|
|
url = "https://github.com/vbmithr/ocaml-text/archive/0.7.1.tar.gz";
|
|
|
|
sha256 = "0dn096q9gjfj7ibj237mb7lq0742a760zawka6i064qns727qwrg";
|
2014-05-15 10:02:32 +01:00
|
|
|
};
|
|
|
|
|
2014-11-26 23:16:50 +00:00
|
|
|
buildInputs = [ocaml findlib ncurses libiconv];
|
2014-05-15 10:02:32 +01:00
|
|
|
|
2014-11-26 23:16:50 +00:00
|
|
|
configurePhase = "iconv_prefix=${libiconv} ocaml setup.ml -configure";
|
2014-05-15 10:02:32 +01:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://ocaml-text.forge.ocamlcore.org/";
|
2015-04-30 16:05:14 +01:00
|
|
|
description = "A library for convenient text manipulation";
|
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;
|
|
|
|
};
|
|
|
|
}
|