2021-01-15 22:18:51 +00:00
|
|
|
{stdenv, lib, fetchurl, ocaml, findlib, camlp4}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
if lib.versionAtLeast ocaml.version "4.05"
|
2020-04-24 23:36:52 +00:00
|
|
|
then throw "camomile-0.8.2 is not available for OCaml ${ocaml.version}"
|
|
|
|
else
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "camomile";
|
|
|
|
version = "0.8.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/camomile/camomile-${version}.tar.bz2";
|
|
|
|
sha256 = "0x43pjxx70kgip86mmdn08s97k4qzdqc8i79xfyyx28smy1bsa00";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ocaml findlib camlp4];
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://camomile.sourceforge.net/";
|
|
|
|
description = "A comprehensive Unicode library for OCaml";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.lgpl21;
|
2020-04-24 23:36:52 +00:00
|
|
|
branch = "0.8.2";
|
|
|
|
platforms = ocaml.meta.platforms or [];
|
|
|
|
maintainers = [
|
2021-01-15 22:18:51 +00:00
|
|
|
lib.maintainers.maggesi
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|