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