1 { lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, uchar, uutf, uunf, uucd }:
6 webpage = "https://erratique.ch/software/${pname}";
7 minimalOCamlVersion = "4.03";
11 if lib.versionOlder ocaml.version minimalOCamlVersion
12 then builtins.throw "${pname} needs at least OCaml ${minimalOCamlVersion}"
17 name = "ocaml${ocaml.version}-${pname}-${version}";
20 url = "${webpage}/releases/${pname}-${version}.tbz";
21 hash = "sha256-qR5LiAZHt4oD3ak0x17GqbYXNaJmJxFk/WGoxT+yWYc=";
24 nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
25 buildInputs = [ topkg uutf uunf uucd ];
27 propagatedBuildInputs = [ uchar ];
33 ${topkg.buildPhase} --with-cmdliner false --tests ${lib.boolToString doCheck}
37 inherit (topkg) installPhase;
45 checkInputs = [ uucd ];
48 description = "An OCaml library providing efficient access to a selection of character properties of the Unicode character database";
50 inherit (ocaml.meta) platforms;
51 license = licenses.bsd3;
52 maintainers = [ maintainers.vbgl ];