2016-10-08 07:44:25 +01:00
|
|
|
{ stdenv, fetchzip, libiconv, ocaml, findlib, ocamlbuild, ncurses }:
|
2014-05-15 10:02:32 +01:00
|
|
|
|
2016-04-05 17:44:54 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "ocaml-text";
|
2016-04-05 17:44:54 +01:00
|
|
|
version = "0.8";
|
2014-05-15 10:02:32 +01:00
|
|
|
|
2016-04-05 17:44:54 +01:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/vbmithr/ocaml-text/archive/${version}.tar.gz";
|
|
|
|
sha256 = "11jamdfn5s19a0yvl012q1xvdk1grkp4rkrn819imqrvdplqkn1y";
|
2014-05-15 10:02:32 +01:00
|
|
|
};
|
|
|
|
|
2016-10-08 07:44:25 +01:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild 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 = {
|
2020-04-01 02:11:51 +01:00
|
|
|
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;
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2014-05-15 10:02:32 +01:00
|
|
|
};
|
|
|
|
}
|