guix_mirror_bot pushed a commit to branch ocaml-team
in repository guix.

commit b937f15451e62f9b4e0764d7f80ae7dcfcff0645
Author: Jason Conroy <[email protected]>
AuthorDate: Sat Jan 10 17:01:26 2026 -0500

    gnu: ocaml5: Add ocaml-cppo.
    
    * gnu/packages/ocaml5.scm (ocaml-cppo): New variable.
    
    Change-Id: I787495978ebdb3d4d6575df96e249647008b416a
    Signed-off-by: Julien Lepiller <[email protected]>
---
 gnu/packages/ocaml5.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/ocaml5.scm b/gnu/packages/ocaml5.scm
index fb6c0de155..3e814d4e18 100644
--- a/gnu/packages/ocaml5.scm
+++ b/gnu/packages/ocaml5.scm
@@ -381,6 +381,36 @@ generation.  It supports programs with single or multiple 
commands and respects
 most of the POSIX and GNU conventions.")
     (license license:bsd-3)))
 
+(define-public ocaml-cppo
+  (package
+    (name "ocaml5-cppo")
+    (version "1.6.9")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/mjambon/cppo";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1c8jlr2s0allw1h6czz5q24vn5jsnrrh44j7hjyilzaifm17dlrm"))))
+    (build-system dune-build-system)
+    (arguments
+     `(#:tests? #f))
+    (native-inputs (list ocamlbuild))
+    (home-page "https://github.com/mjambon/cppo";)
+    (synopsis "Equivalent of the C preprocessor for OCaml programs")
+    (description
+     "Cppo is an equivalent of the C preprocessor for OCaml
+programs.  It allows the definition of simple macros and file inclusion.  Cppo 
is:
+@enumerate
+@item more OCaml-friendly than @command{cpp}
+@item easy to learn without consulting a manual
+@item reasonably fast
+@item simple to install and to maintain.
+@end enumerate")
+    (license license:bsd-3)))
+
 (define-public ocaml5.3-dune-bootstrap
   (package
     (name "ocaml5.3-dune")

Reply via email to