2016-12-04 10:17:42 +00:00
|
|
|
{ stdenv, fetchzip, ocaml, findlib, ocamlbuild, uutf, lwt }:
|
2016-05-30 14:11:44 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-12-04 10:17:42 +00:00
|
|
|
pname = "markup";
|
2016-12-10 21:30:18 +00:00
|
|
|
version = "0.7.4";
|
2016-12-04 10:17:42 +00:00
|
|
|
name = "ocaml${ocaml.version}-${pname}-${version}";
|
2016-05-30 14:11:44 +01:00
|
|
|
|
2016-12-04 10:17:42 +00:00
|
|
|
src = fetchzip {
|
2016-05-30 14:11:44 +01:00
|
|
|
url = "http://github.com/aantron/markup.ml/archive/${version}.tar.gz";
|
2016-12-10 21:30:18 +00:00
|
|
|
sha256 = "1hchlqzsy9pax91gcdmxzakfm22fbvhxzwyzpvz8fqkx4372zs37";
|
2016-05-30 14:11:44 +01:00
|
|
|
};
|
|
|
|
|
2016-10-09 19:10:46 +01:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild ];
|
2016-05-30 14:11:44 +01:00
|
|
|
|
|
|
|
installPhase = "make ocamlfind-install";
|
|
|
|
|
|
|
|
propagatedBuildInputs = [uutf lwt];
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/aantron/markup.ml/;
|
|
|
|
description = "A pair of best-effort parsers implementing the HTML5 and XML specifications";
|
2016-05-31 17:06:38 +01:00
|
|
|
license = licenses.bsd2;
|
2016-05-30 14:11:44 +01:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
|
|
|
maintainers = with maintainers; [
|
|
|
|
gal_bolle
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|