2021-01-15 22:18:51 +00:00
|
|
|
{ stdenv, lib, fetchzip, libiconv, ocaml, findlib, ocamlbuild, ncurses }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ocaml-text";
|
|
|
|
version = "0.8";
|
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/vbmithr/ocaml-text/archive/${version}.tar.gz";
|
|
|
|
sha256 = "11jamdfn5s19a0yvl012q1xvdk1grkp4rkrn819imqrvdplqkn1y";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ocaml findlib ocamlbuild ncurses libiconv ];
|
|
|
|
|
|
|
|
configurePhase = "iconv_prefix=${libiconv} ocaml setup.ml -configure";
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://ocaml-text.forge.ocamlcore.org/";
|
|
|
|
description = "A library for convenient text manipulation";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.bsd3;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
|
|
|
};
|
|
|
|
}
|