depot/third_party/nixpkgs/pkgs/development/ocaml-modules/otfm/default.nix
Default email a66bca1520 Project import generated by Copybara.
GitOrigin-RevId: 40f79f003b6377bd2f4ed4027dde1f8f922995dd
2022-12-17 11:02:37 +01:00

41 lines
1 KiB
Nix

{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, uutf }:
let
pname = "otfm";
version = "0.4.0";
webpage = "https://erratique.ch/software/${pname}";
in
stdenv.mkDerivation {
pname = "ocaml${ocaml.version}-${pname}";
inherit version;
src = fetchurl {
url = "${webpage}/releases/${pname}-${version}.tbz";
hash = "sha256-02U23mYTy0ZJgSObDoyygPTGEMC4/Zge5bux4wshaEE=";
};
nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
buildInputs = [ topkg ];
propagatedBuildInputs = [ uutf ];
strictDeps = true;
inherit (topkg) buildPhase installPhase;
meta = with 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;
license = licenses.bsd3;
maintainers = [ maintainers.jirkamarsik ];
mainProgram = "otftrip";
inherit (ocaml.meta) platforms;
};
}