bac4d95aa2
Lots of URLs were HTTP redirect to HTTPS. Changed those and checked them if there's actual content. Inspired by https://github.com/NixOS/nixpkgs/issues/60004
39 lines
1023 B
Nix
39 lines
1023 B
Nix
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, uutf, result }:
|
|
|
|
let
|
|
pname = "otfm";
|
|
version = "0.3.0";
|
|
webpage = "https://erratique.ch/software/${pname}";
|
|
in
|
|
|
|
assert stdenv.lib.versionAtLeast ocaml.version "4.01.0";
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ocaml-${pname}-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "${webpage}/releases/${pname}-${version}.tbz";
|
|
sha256 = "054s82539k3kc9na6s47g3scsl04icjahpas7pv5351jmsgqcq3k";
|
|
};
|
|
|
|
buildInputs = [ ocaml findlib ocamlbuild topkg ];
|
|
|
|
propagatedBuildInputs = [ uutf result ];
|
|
|
|
inherit (topkg) buildPhase installPhase;
|
|
|
|
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}";
|
|
platforms = ocaml.meta.platforms or [];
|
|
license = licenses.bsd3;
|
|
maintainers = [ maintainers.jirkamarsik ];
|
|
};
|
|
}
|