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