2016-10-08 08:44:25 +02:00
|
|
|
{ stdenv, fetchzip, libiconv, ocaml, findlib, ocamlbuild, ncurses }:
|
2014-05-15 11:02:32 +02:00
|
|
|
|
2016-04-05 18:44:54 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ocaml-text-${version}";
|
|
|
|
version = "0.8";
|
2014-05-15 11:02:32 +02:00
|
|
|
|
2016-04-05 18:44:54 +02:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/vbmithr/ocaml-text/archive/${version}.tar.gz";
|
|
|
|
sha256 = "11jamdfn5s19a0yvl012q1xvdk1grkp4rkrn819imqrvdplqkn1y";
|
2014-05-15 11:02:32 +02:00
|
|
|
};
|
|
|
|
|
2016-10-08 08:44:25 +02:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild ncurses libiconv ];
|
2014-05-15 11:02:32 +02:00
|
|
|
|
2014-11-27 00:16:50 +01:00
|
|
|
configurePhase = "iconv_prefix=${libiconv} ocaml setup.ml -configure";
|
2014-05-15 11:02:32 +02:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
|
|
|
|
meta = {
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://ocaml-text.forge.ocamlcore.org/;
|
2015-04-30 17:05:14 +02:00
|
|
|
description = "A library for convenient text manipulation";
|
2014-11-03 12:55:12 +01:00
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2015-12-24 18:49:07 +01:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2014-05-15 11:02:32 +02:00
|
|
|
};
|
|
|
|
}
|