1{ stdenv, fetchzip, libiconv, ocaml, findlib, ncurses }:
2
3stdenv.mkDerivation rec {
4 name = "ocaml-text-${version}";
5 version = "0.8";
6
7 src = fetchzip {
8 url = "https://github.com/vbmithr/ocaml-text/archive/${version}.tar.gz";
9 sha256 = "11jamdfn5s19a0yvl012q1xvdk1grkp4rkrn819imqrvdplqkn1y";
10 };
11
12 buildInputs = [ocaml findlib ncurses libiconv];
13
14 configurePhase = "iconv_prefix=${libiconv} ocaml setup.ml -configure";
15
16 createFindlibDestdir = true;
17
18
19 meta = {
20 homepage = "http://ocaml-text.forge.ocamlcore.org/";
21 description = "A library for convenient text manipulation";
22 license = stdenv.lib.licenses.bsd3;
23 platforms = ocaml.meta.platforms or [];
24 };
25}