12 webpage = "https://erratique.ch/software/${pname}";
15 if lib.versionOlder ocaml.version "4.05" then
16 throw "xmlm is not available for OCaml ${ocaml.version}"
19 stdenv.mkDerivation rec {
20 name = "ocaml${ocaml.version}-${pname}-${version}";
24 url = "${webpage}/releases/${pname}-${version}.tbz";
25 sha256 = "sha256-CRJSJY490WMgw85N2yG81X79nIwuv7eZ7mpUPtSS2fo=";
34 buildInputs = [ topkg ];
38 inherit (topkg) buildPhase installPhase;
41 description = "OCaml streaming codec to decode and encode the XML data format";
43 license = licenses.isc;
44 maintainers = [ maintainers.vbgl ];
45 mainProgram = "xmltrip";
46 inherit (ocaml.meta) platforms;