1 { lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, uutf, result }:
6 webpage = "https://erratique.ch/software/${pname}";
9 assert lib.versionAtLeast ocaml.version "4.01.0";
13 name = "ocaml-${pname}-${version}";
16 url = "${webpage}/releases/${pname}-${version}.tbz";
17 sha256 = "054s82539k3kc9na6s47g3scsl04icjahpas7pv5351jmsgqcq3k";
20 nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
21 buildInputs = [ topkg ];
23 propagatedBuildInputs = [ uutf result ];
27 inherit (topkg) buildPhase installPhase;
30 description = "OpenType font decoder for OCaml";
32 Otfm is an in-memory decoder for the OpenType font data format. It
33 provides low-level access to font tables and functions to decode some
37 license = licenses.bsd3;
38 maintainers = [ maintainers.jirkamarsik ];
39 mainProgram = "otftrip";
40 inherit (ocaml.meta) platforms;