12 if lib.versionOlder ocaml.version "4.14.0" then
13 throw "cmarkit is not available for OCaml ${ocaml.version}"
16 stdenv.mkDerivation rec {
21 url = "https://erratique.ch/software/cmarkit/releases/cmarkit-${version}.tbz";
22 hash = "sha256-RouM5iU7VeTT0+4yhBgdEmxROeP/X31iqDjd1VI7z5c=";
39 inherit (topkg) buildPhase installPhase;
42 description = "CommonMark parser and renderer for OCaml";
43 homepage = "https://erratique.ch/software/cmarkit";
44 changelog = "https://github.com/dbuenzli/cmarkit/blob/v${version}/CHANGES.md";
45 license = licenses.isc;
47 inherit (ocaml.meta) platforms;