1{
2 lib,
3 buildDunePackage,
4 fetchurl,
5}:
6
7buildDunePackage rec {
8 pname = "omd";
9 version = "1.3.2";
10
11 minimalOCamlVersion = "4.03";
12
13 src = fetchurl {
14 url = "https://github.com/ocaml/omd/releases/download/${version}/omd-${version}.tbz";
15 sha256 = "sha256-YCPhZCYx8I9njrVyWCCHnte7Wj/+53fN7evCjB+F+ts=";
16 };
17
18 preBuild = ''
19 substituteInPlace src/dune --replace "bytes)" ")"
20 '';
21
22 meta = {
23 description = "Extensible Markdown library and tool in OCaml";
24 homepage = "https://github.com/ocaml/omd";
25 license = lib.licenses.isc;
26 maintainers = [ lib.maintainers.vbgl ];
27 mainProgram = "omd";
28 };
29}