1{
2 lib,
3 buildDunePackage,
4 fetchFromGitHub,
5 ocaml,
6 uchar,
7 uutf,
8 ounit2,
9}:
10
11buildDunePackage rec {
12 pname = "markup";
13 version = "1.0.3";
14
15 useDune2 = true;
16
17 src = fetchFromGitHub {
18 owner = "aantron";
19 repo = "markup.ml";
20 rev = version;
21 sha256 = "sha256-tsXz39qFSyL6vPYKG7P73zSEiraaFuOySL1n0uFij6k=";
22 };
23
24 propagatedBuildInputs = [
25 uchar
26 uutf
27 ];
28
29 checkInputs = [ ounit2 ];
30 doCheck = lib.versionAtLeast ocaml.version "4.08";
31
32 meta = with lib; {
33 homepage = "https://github.com/aantron/markup.ml/";
34 description = "Pair of best-effort parsers implementing the HTML5 and XML specifications";
35 license = licenses.mit;
36 maintainers = with maintainers; [ gal_bolle ];
37 };
38
39}