1 { lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, uutf }:
6 webpage = "https://erratique.ch/software/${pname}";
11 pname = "ocaml${ocaml.version}-${pname}";
15 url = "${webpage}/releases/${pname}-${version}.tbz";
16 hash = "sha256-02U23mYTy0ZJgSObDoyygPTGEMC4/Zge5bux4wshaEE=";
19 nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
20 buildInputs = [ topkg ];
22 propagatedBuildInputs = [ uutf ];
26 inherit (topkg) buildPhase installPhase;
29 description = "OpenType font decoder for OCaml";
31 Otfm is an in-memory decoder for the OpenType font data format. It
32 provides low-level access to font tables and functions to decode some
36 license = licenses.bsd3;
37 maintainers = [ maintainers.jirkamarsik ];
38 mainProgram = "otftrip";
39 inherit (ocaml.meta) platforms;