nixpkgs/pkgs/development/ocaml-modules/otfm/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
1.0 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, uutf, result }:
2014-10-29 18:35:23 +00:00
let
pname = "otfm";
2016-12-04 10:16:35 +00:00
version = "0.3.0";
webpage = "https://erratique.ch/software/${pname}";
2014-10-29 18:35:23 +00:00
in
assert lib.versionAtLeast ocaml.version "4.01.0";
2014-10-29 18:35:23 +00:00
2019-08-13 22:52:01 +01:00
stdenv.mkDerivation {
2014-10-29 18:35:23 +00:00
name = "ocaml-${pname}-${version}";
src = fetchurl {
url = "${webpage}/releases/${pname}-${version}.tbz";
2016-12-04 10:16:35 +00:00
sha256 = "054s82539k3kc9na6s47g3scsl04icjahpas7pv5351jmsgqcq3k";
2014-10-29 18:35:23 +00:00
};
nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
buildInputs = [ topkg ];
2016-12-04 10:16:35 +00:00
propagatedBuildInputs = [ uutf result ];
2014-10-29 18:35:23 +00:00
strictDeps = true;
2016-12-04 10:16:35 +00:00
inherit (topkg) buildPhase installPhase;
2014-10-29 18:35:23 +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-09 00:38:31 +01:00
homepage = webpage;
platforms = ocaml.meta.platforms or [];
2014-10-29 18:35:23 +00:00
license = licenses.bsd3;
maintainers = [ maintainers.jirkamarsik ];
};
}