>From ba40db7ba6d91dc63ddeff68e24fae355a9e8769 Mon Sep 17 00:00:00 2001 From: John Soo Date: Thu, 31 Dec 2020 11:42:34 -0800 Subject: [PATCH 8/9] gnu: Add ocaml-odoc. * gnu/packages/ocaml.scm (ocaml-odoc): New variable. --- gnu/packages/ocaml.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm index e0882d8f26..2975f866c9 100644 --- a/gnu/packages/ocaml.scm +++ b/gnu/packages/ocaml.scm @@ -2424,6 +2424,39 @@ without a complete in-memory representation of the data.") multitude of other network protocols (FTP/SMTP/RTSP/etc).") (license license:isc))) +(define-public ocaml-odoc + (package + (name "ocaml-odoc") + (version "1.5.2") + (source + (origin + (method url-fetch) + (uri "https://github.com/ocaml/odoc/releases/download/1.5.2/odoc-1.5.2.tbz") + (sha256 + (base32 + "0wa87h8q6izcc6rkzqn944vrb3hmc21lf0d0rmr8rhhbcvr66i6j")))) + (build-system dune-build-system) + (inputs + `(("ocaml-astring" ,ocaml-astring) + ("ocaml-cmdliner" ,ocaml-cmdliner) + ("ocaml-fpath" ,ocaml-fpath) + ("ocaml-result" ,ocaml-result) + ("ocaml-tyxml" ,ocaml-tyxml) + ("ocaml-alcotest" ,ocaml-alcotest) + ("ocaml-markup" ,ocaml-markup) + ("ocaml-sexplib" ,ocaml-sexplib))) + (native-inputs + `(("ocaml-cppo" ,ocaml-cppo) + ("ocaml-bisect-ppx" ,ocaml-bisect-ppx))) + ;; FIXME: Needs some extra inputs for tests to succeed + (arguments `(#:tests? #f)) + (home-page "http://github.com/ocaml/odoc") + (synopsis "OCaml documentation generator") + (description + "Odoc is a documentation generator for OCaml. It reads doc comments, +delimited with @code{(** ... *)}, and outputs HTML.") + (license license:isc))) + (define-public ocaml-base64 (package (name "ocaml-base64") -- 2.29.2