1{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, uutf, lwt }: 2 3stdenv.mkDerivation rec { 4 pname = "markup"; 5 version = "0.7.4"; 6 name = "ocaml${ocaml.version}-${pname}-${version}"; 7 8 src = fetchzip { 9 url = "http://github.com/aantron/markup.ml/archive/${version}.tar.gz"; 10 sha256 = "1hchlqzsy9pax91gcdmxzakfm22fbvhxzwyzpvz8fqkx4372zs37"; 11 }; 12 13 buildInputs = [ ocaml findlib ocamlbuild ]; 14 15 installPhase = "make ocamlfind-install"; 16 17 propagatedBuildInputs = [uutf lwt]; 18 19 createFindlibDestdir = true; 20 21 meta = with stdenv.lib; { 22 homepage = https://github.com/aantron/markup.ml/; 23 description = "A pair of best-effort parsers implementing the HTML5 and XML specifications"; 24 license = licenses.bsd2; 25 platforms = ocaml.meta.platforms or []; 26 maintainers = with maintainers; [ 27 gal_bolle 28 ]; 29 }; 30 31}