2021-12-06 16:07:01 +00:00
|
|
|
{ lib, buildDunePackage, fetchFromGitHub, ocaml, uchar, uutf, ounit2 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
buildDunePackage rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "markup";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "1.0.2";
|
2020-12-07 07:45:13 +00:00
|
|
|
|
|
|
|
useDune2 = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aantron";
|
|
|
|
repo = "markup.ml";
|
|
|
|
rev = version;
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "sha256-FcN9EBap93gFeOwSrRxs2sQrjZGs8/YnaEX7zHLmeM8=";
|
2020-12-07 07:45:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ uchar uutf ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-12-07 07:45:13 +00:00
|
|
|
checkInputs = [ ounit2 ];
|
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.04";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/aantron/markup.ml/";
|
|
|
|
description = "A pair of best-effort parsers implementing the HTML5 and XML specifications";
|
2020-08-20 17:08:02 +00:00
|
|
|
license = licenses.mit;
|
2020-12-07 07:45:13 +00:00
|
|
|
maintainers = with maintainers; [ gal_bolle ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|