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