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";
|
2017-12-09 09:33:32 +00:00
|
|
|
version = "0.7.5";
|
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 {
|
2019-04-22 09:14:28 +01:00
|
|
|
url = "https://github.com/aantron/markup.ml/archive/${version}.tar.gz";
|
2017-12-09 09:33:32 +00:00
|
|
|
sha256 = "09qm73m6c6wjh51w61vnfsnis37m28cf1r6hnkr3bbg903ahwbp5";
|
2016-05-30 14:11:44 +01:00
|
|
|
};
|
|
|
|
|
2017-12-09 09:33:32 +00:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild lwt ];
|
2016-05-30 14:11:44 +01:00
|
|
|
|
|
|
|
installPhase = "make ocamlfind-install";
|
2017-12-09 09:33:32 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ uutf ];
|
2016-05-30 14:11:44 +01:00
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/aantron/markup.ml/";
|
2016-05-30 14:11:44 +01:00
|
|
|
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
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|