1 { lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg }:
4 webpage = "https://erratique.ch/software/${pname}";
7 if lib.versionOlder ocaml.version "4.05"
8 then throw "xmlm is not available for OCaml ${ocaml.version}"
11 stdenv.mkDerivation rec {
12 name = "ocaml${ocaml.version}-${pname}-${version}";
16 url = "${webpage}/releases/${pname}-${version}.tbz";
17 sha256 = "sha256-CRJSJY490WMgw85N2yG81X79nIwuv7eZ7mpUPtSS2fo=";
20 nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ];
21 buildInputs = [ topkg ];
25 inherit (topkg) buildPhase installPhase;
28 description = "An OCaml streaming codec to decode and encode the XML data format";
30 license = licenses.isc;
31 maintainers = [ maintainers.vbgl ];
32 mainProgram = "xmltrip";
33 inherit (ocaml.meta) platforms;