nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, buildDunePackage, fetchFromGitHub, ocaml, uchar, uutf, ounit2 }:
2
3buildDunePackage rec {
4 pname = "markup";
5 version = "1.0.2";
6
7 useDune2 = true;
8
9 src = fetchFromGitHub {
10 owner = "aantron";
11 repo = "markup.ml";
12 rev = version;
13 sha256 = "sha256-FcN9EBap93gFeOwSrRxs2sQrjZGs8/YnaEX7zHLmeM8=";
14 };
15
16 propagatedBuildInputs = [ uchar uutf ];
17
18 checkInputs = [ ounit2 ];
19 doCheck = lib.versionAtLeast ocaml.version "4.04";
20
21 meta = with 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.mit;
25 maintainers = with maintainers; [ gal_bolle ];
26 };
27
28}