16 sha256 = "sha256-fiU6VbXI9hD54LSJQOza8hwBVTFDr5O0DJmMMEmeUfM=";
19 sha256 = "sha256-QHkZ+7DrlXYdb8bsZ3dijZSqGQc0O9ymeLGIC6+zOSI=";
22 sha256 = "sha256-orvo5CAbYOmAurAeluQfK6CwW6P1C0T3WDfoovuQfSw=";
25 sha256 = "sha256-tqoI6nGp662bK+vE2h7aDXE882dObVfRBFnZNChueqE=";
29 sha256 = "sha256-3w2tG605v03mvmZsS2O5c71y66O3W+n3JjFxIbXwvXk=";
36 lib.throwIf (param ? max_version && lib.versionAtLeast ocaml.version param.max_version)
37 "odoc-parser ${version} is not available for OCaml ${ocaml.version}"
41 pname = "odoc-parser";
44 minimalOCamlVersion = "4.02";
48 if lib.versionAtLeast version "2.4" then
49 "https://github.com/ocaml/odoc/releases/download/${version}/odoc-${version}.tbz"
51 "https://github.com/ocaml-doc/odoc-parser/releases/download/${version}/odoc-parser-${version}.tbz";
52 inherit (param) sha256;
55 propagatedBuildInputs = [
58 ] ++ lib.optional (lib.versionAtLeast version "1.0.1") camlp-streams;
61 description = "Parser for Ocaml documentation comments";
62 license = lib.licenses.isc;
63 maintainers = with lib.maintainers; [ momeemt ];
64 homepage = "https://github.com/ocaml-doc/odoc-parser";
65 changelog = "https://github.com/ocaml-doc/odoc-parser/raw/${version}/CHANGES.md";