1 { stdenv, lib, fetchFromGitHub, ocaml, findlib, gitUpdater }:
3 stdenv.mkDerivation rec {
4 pname = "ocaml${ocaml.version}-xml-light";
7 src = fetchFromGitHub {
11 sha256 = "sha256-2txmkl/ZN5RGaLQJmr+orqwB4CbFk2RpLJd4gr7kPiE=";
14 nativeBuildInputs = [ ocaml findlib ];
18 createFindlibDestdir = true;
22 make install_ocamlfind
24 cp -vai doc $out/share/
28 passthru.updateScript = gitUpdater { };
31 description = "Minimal Xml parser and printer for OCaml";
33 Xml-Light provides functions to parse an XML document into an OCaml
34 data structure, work with it, and print it back to an XML
35 document. It support also DTD parsing and checking, and is
36 entirely written in OCaml, hence it does not require additional C
39 homepage = "http://tech.motion-twin.com/xmllight.html";
40 license = lib.licenses.lgpl21;
41 maintainers = [ lib.maintainers.romildo ];
42 inherit (ocaml.meta) platforms;