2022-08-12 12:06:08 +00:00
|
|
|
{ lib, buildDunePackage, fetchurl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "omd";
|
|
|
|
version = "1.3.2";
|
|
|
|
|
|
|
|
minimalOCamlVersion = "4.03";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
2022-08-12 12:06:08 +00:00
|
|
|
url = "https://github.com/ocaml/omd/releases/download/${version}/omd-${version}.tbz";
|
|
|
|
sha256 = "sha256-YCPhZCYx8I9njrVyWCCHnte7Wj/+53fN7evCjB+F+ts=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
preBuild = ''
|
|
|
|
substituteInPlace src/dune --replace "bytes)" ")"
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
description = "Extensible Markdown library and tool in OCaml";
|
|
|
|
homepage = "https://github.com/ocaml/omd";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.isc;
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
2022-05-18 14:49:53 +00:00
|
|
|
mainProgram = "omd";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|