1{
2 lib,
3 buildDunePackage,
4 fetchurl,
5}:
6
7buildDunePackage rec {
8 pname = "xml-light";
9 version = "2.5";
10
11 duneVersion = "3";
12 minimalOCamlVersion = "4.03";
13
14 src = fetchurl {
15 url = "https://github.com/ncannasse/xml-light/releases/download/${version}/xml-light-${version}.tbz";
16 hash = "sha256-9YwrPbcK0boICw0wauMvgsy7ldq7ksWZzcRn0eROAD0=";
17 };
18
19 meta = {
20 description = "Minimal Xml parser and printer for OCaml";
21 longDescription = ''
22 Xml-Light provides functions to parse an XML document into an OCaml
23 data structure, work with it, and print it back to an XML
24 document. It support also DTD parsing and checking, and is
25 entirely written in OCaml, hence it does not require additional C
26 library.
27 '';
28 homepage = "http://tech.motion-twin.com/xmllight.html";
29 license = lib.licenses.lgpl21;
30 maintainers = [ lib.maintainers.romildo ];
31 };
32}