summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ocaml-modules/otfed/default.nix
blob: 319f7d7fad1432b4da1422da4e373248a677858c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
  lib,
  buildDunePackage,
  fetchFromGitHub,
  base,
  ppx_deriving,
  ppx_inline_test,
  uutf,
  alcotest,
}:

buildDunePackage (finalAttrs: {
  pname = "otfed";
  version = "0.3.1";

  minimalOCamlVersion = "4.08";

  src = fetchFromGitHub {
    owner = "gfngfn";
    repo = "otfed";
    rev = finalAttrs.version;
    hash = "sha256-6QCom9nrz0B5vCmuBzqsM0zCs8tBLJC6peig+vCgMVA=";
  };

  buildInputs = [
    uutf
  ];

  propagatedBuildInputs = [
    base
    ppx_deriving
    ppx_inline_test
  ];

  checkInputs = [
    alcotest
  ];

  doCheck = true;

  meta = {
    homepage = "https://github.com/gfngfn/otfed";
    description = "OpenType Font Format Encoder & Decoder";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.vbgl ];
  };
})