Files
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

56 lines
1.0 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 = {
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 = lib.licenses.bsd3;
maintainers = [ lib.maintainers.jirkamarsik ];
mainProgram = "otftrip";
inherit (ocaml.meta) platforms;
};
}