2022-01-03 16:56:52 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, astring, result , version ? "1.0.0" }:
|
2021-08-05 21:33:18 +00:00
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
let param = {
|
|
|
|
"1.0.0" = {
|
|
|
|
sha256 = "sha256-tqoI6nGp662bK+vE2h7aDXE882dObVfRBFnZNChueqE=";
|
|
|
|
};
|
|
|
|
"0.9.0" = {
|
|
|
|
sha256 = "sha256-3w2tG605v03mvmZsS2O5c71y66O3W+n3JjFxIbXwvXk=";
|
|
|
|
};
|
|
|
|
}."${version}"; in
|
|
|
|
|
|
|
|
let v = version; in
|
2021-08-05 21:33:18 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "odoc-parser";
|
2022-01-03 16:56:52 +00:00
|
|
|
inherit version;
|
2021-08-05 21:33:18 +00:00
|
|
|
|
|
|
|
minimumOCamlVersion = "4.02";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2022-01-03 16:56:52 +00:00
|
|
|
url = "https://github.com/ocaml-doc/odoc-parser/releases/download/${version}/odoc-parser-${version}.tbz";
|
|
|
|
inherit (param) sha256;
|
2021-08-05 21:33:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
useDune2 = true;
|
|
|
|
|
|
|
|
buildInputs = [ astring result ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Parser for Ocaml documentation comments";
|
|
|
|
license = lib.licenses.isc;
|
|
|
|
maintainers = [ lib.maintainers.marsam ];
|
|
|
|
homepage = "https://github.com/ocaml-doc/odoc-parser";
|
|
|
|
changelog = "https://github.com/ocaml-doc/odoc-parser/raw/${version}/CHANGES.md";
|
|
|
|
};
|
|
|
|
}
|