2016-12-04 11:16:35 +01:00
|
|
|
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam, topkg, uutf, result }:
|
2014-10-29 19:35:23 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
pname = "otfm";
|
2016-12-04 11:16:35 +01:00
|
|
|
version = "0.3.0";
|
2014-10-29 19:35:23 +01:00
|
|
|
webpage = "http://erratique.ch/software/${pname}";
|
|
|
|
in
|
|
|
|
|
2016-12-04 11:16:35 +01:00
|
|
|
assert stdenv.lib.versionAtLeast ocaml.version "4.01.0";
|
2014-10-29 19:35:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "ocaml-${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "${webpage}/releases/${pname}-${version}.tbz";
|
2016-12-04 11:16:35 +01:00
|
|
|
sha256 = "054s82539k3kc9na6s47g3scsl04icjahpas7pv5351jmsgqcq3k";
|
2014-10-29 19:35:23 +01:00
|
|
|
};
|
|
|
|
|
2016-12-04 11:16:35 +01:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild opam topkg ];
|
2014-10-29 20:50:27 +01:00
|
|
|
|
2016-12-04 11:16:35 +01:00
|
|
|
propagatedBuildInputs = [ uutf result ];
|
2014-10-29 19:35:23 +01:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
unpackCmd = "tar xjf $src";
|
|
|
|
|
2016-12-04 11:16:35 +01:00
|
|
|
inherit (topkg) buildPhase installPhase;
|
2014-10-29 19:35:23 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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.
|
|
|
|
'';
|
|
|
|
homepage = "${webpage}";
|
2015-12-24 18:49:07 +01:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2014-10-29 19:35:23 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.jirkamarsik ];
|
|
|
|
};
|
|
|
|
}
|