2022-12-03 11:57:54 +00:00
|
|
|
{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, uutf }:
|
2014-10-29 18:35:23 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "otfm";
|
2022-12-03 11:57:54 +00:00
|
|
|
version = "0.4.0";
|
2019-04-22 08:14:28 +00:00
|
|
|
webpage = "https://erratique.ch/software/${pname}";
|
2014-10-29 18:35:23 +00:00
|
|
|
in
|
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2014-10-29 18:35:23 +00:00
|
|
|
|
2022-12-03 11:57:54 +00:00
|
|
|
pname = "ocaml${ocaml.version}-${pname}";
|
|
|
|
inherit version;
|
2014-10-29 18:35:23 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "${webpage}/releases/${pname}-${version}.tbz";
|
2022-12-03 11:57:54 +00:00
|
|
|
hash = "sha256-02U23mYTy0ZJgSObDoyygPTGEMC4/Zge5bux4wshaEE=";
|
2014-10-29 18:35:23 +00:00
|
|
|
};
|
|
|
|
|
2022-02-22 09:59:04 +00:00
|
|
|
nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
|
|
|
|
buildInputs = [ topkg ];
|
2014-10-29 19:50:27 +00:00
|
|
|
|
2022-12-03 11:57:54 +00:00
|
|
|
propagatedBuildInputs = [ uutf ];
|
2014-10-29 18:35:23 +00:00
|
|
|
|
2022-02-22 09:59:04 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2016-12-04 10:16:35 +00:00
|
|
|
inherit (topkg) buildPhase installPhase;
|
2014-10-29 18:35:23 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-10-29 18:35:23 +00:00
|
|
|
description = "OpenType font decoder for OCaml";
|
|
|
|
longDescription = ''
|
|
|
|
Otfm is an in-memory decoder for the OpenType font data format. It
|
|
|
|
provides low-level access to font tables and functions to decode some
|
|
|
|
of them.
|
|
|
|
'';
|
2019-09-08 23:38:31 +00:00
|
|
|
homepage = webpage;
|
2014-10-29 18:35:23 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.jirkamarsik ];
|
2022-05-13 23:48:49 +00:00
|
|
|
mainProgram = "otftrip";
|
|
|
|
inherit (ocaml.meta) platforms;
|
2014-10-29 18:35:23 +00:00
|
|
|
};
|
|
|
|
}
|