···11+{stdenv, fetchurl, ocaml, findlib}:22+let33+ pname = "xml-light";44+ version = "2.4";55+in66+stdenv.mkDerivation {77+ name = "ocaml-${pname}-${version}";88+99+ src = fetchurl {1010+ url = "https://github.com/ncannasse/${pname}/archive/${version}.tar.gz";1111+ sha256 = "10b55qf6mvdp11ny3h0jv6k6wrs78jr9lhsiswl0xya7z8r8j0a2";1212+ };1313+1414+ buildInputs = [ ocaml findlib ];1515+1616+ createFindlibDestdir = true;1717+1818+ buildPhase = ''1919+ make all2020+ make opt2121+ '';2222+2323+ installPhase = ''2424+ make install_ocamlfind2525+ mkdir -p $out/share2626+ cp -vai doc $out/share/2727+ '';2828+2929+ meta = {3030+ description = "Minimal Xml parser and printer for OCaml";3131+ longDescription = ''3232+ Xml-Light provides functions to parse an XML document into an OCaml3333+ data structure, work with it, and print it back to an XML3434+ document. It support also DTD parsing and checking, and is3535+ entirely written in OCaml, hence it does not require additional C3636+ library.3737+ '';3838+ homepage = "http://tech.motion-twin.com/xmllight.html";3939+ license = stdenv.lib.licenses.lgpl21;4040+ maintainers = [ stdenv.lib.maintainers.romildo ];4141+ platforms = ocaml.meta.platforms;4242+ };4343+}