1{ stdenv, fetchurl, ocaml, findlib, uutf, lwt }:
2
3stdenv.mkDerivation rec {
4 pname = "ocaml-markup";
5 version = "0.7.2";
6 name = "${pname}-${version}";
7
8 src = fetchurl {
9 url = "http://github.com/aantron/markup.ml/archive/${version}.tar.gz";
10 sha256 = "0d3wi22v7h0iqzq8dgl0g4fj2wb67gvmbzdckacifghinrx762k3";
11 };
12
13 buildInputs = [ocaml findlib];
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}