all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Herman Rimm via Guix-patches via <guix-patches@gnu.org>
To: 73466@debbugs.gnu.org
Cc: Julien Lepiller <julien@lepiller.eu>,
	pukkamustard <pukkamustard@posteo.net>
Subject: [bug#73466] [PATCH 11/16] gnu: Add ocaml-cpu.
Date: Wed, 25 Sep 2024 10:03:07 +0200	[thread overview]
Message-ID: <19b7560b09846121f9b0797de0074bb68fa178da.1727250772.git.herman@rimm.ee> (raw)
In-Reply-To: <2a9cc50a22ef14c84d7a5479e10ff42e9efa5ba1.1727250772.git.herman@rimm.ee>

* gnu/packages/ocaml.scm (ocaml-cpu): Add variable.

Change-Id: Id7e0251a97b03fcd186637f1d6c6be17b11d96f8
---
 gnu/packages/ocaml.scm | 45 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 329b28ef84..1989a48798 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5266,6 +5266,51 @@ (define-public ocaml-cppo
 @end enumerate")
     (license license:bsd-3)))
 
+(define-public ocaml-cpu
+  (package
+    (name "ocaml-cpu")
+    (version "2.0.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (string-append "https://github.com/UnixJunkie/cpu/archive/"
+                            "v" version ".tar.gz"))
+        (sha256
+          (base32
+            "1aga2cal07nfqgsfgn41gbdb7dyhj5l4967dq6vzpznrbyp2y09q"))))
+    (build-system ocaml-build-system)
+    (arguments
+      (list #:tests? #f ; no test target
+            #:phases
+            #~(modify-phases %standard-phases
+                (add-before 'configure 'create-header
+                  (lambda _
+                    (invoke "autoheader")
+                    ))
+                (add-before 'configure 'fix-/bin/sh
+                  (lambda _
+                    (substitute* "configure"
+                      (("-/bin/sh") (string-append "-" (which "sh"))))))
+                (replace 'install
+                  (lambda* (#:key outputs #:allow-other-keys)
+                    (let* ((out (assoc-ref outputs "out"))
+                           (libdir
+                             (string-append out "/lib/ocaml/site-lib")))
+                      (invoke "dune" "install" "--prefix" out "--libdir"
+                              libdir)))))))
+    (native-inputs (list autoconf dune ocaml))
+    (home-page "https://github.com/UnixJunkie/cpu")
+    (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 ocaml-seq
   (package
     (name "ocaml-seq")
-- 
2.45.2





  parent reply	other threads:[~2024-09-25  8:05 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-25  7:54 [bug#73466] [PATCH 01/16] gnu: Add ocaml-jsonrpc Herman Rimm via Guix-patches via
2024-09-25  8:02 ` [bug#73466] [PATCH 02/16] gnu: Add ocaml-ppx-yojson-conv-lib Herman Rimm via Guix-patches via
2024-09-25  8:02 ` [bug#73466] [PATCH 03/16] gnu: Add ocaml-arg-complete Herman Rimm via Guix-patches via
2024-09-25  8:03 ` [bug#73466] [PATCH 04/16] gnu: Add ocaml-catapult Herman Rimm via Guix-patches via
2024-09-25  8:03 ` [bug#73466] [PATCH 05/16] gnu: Add ocaml-directories Herman Rimm via Guix-patches via
2024-09-25  8:03 ` [bug#73466] [PATCH 06/16] gnu: Add ocaml-menhirSdk Herman Rimm via Guix-patches via
2024-09-25  8:03 ` [bug#73466] [PATCH 07/16] gnu: Add ocaml-zarith-stubs-js Herman Rimm via Guix-patches via
2024-09-25  8:03 ` [bug#73466] [PATCH 08/16] gnu: Add ocaml-qcheck-core Herman Rimm via Guix-patches via
2024-09-25  8:03 ` [bug#73466] [PATCH 09/16] gnu: Add ocaml-js-of-ocaml-compiler Herman Rimm via Guix-patches via
2024-09-25  8:03 ` [bug#73466] [PATCH 10/16] gnu: Add ocaml-json-data-encoding Herman Rimm via Guix-patches via
2024-09-25  8:03 ` Herman Rimm via Guix-patches via [this message]
2024-09-25  8:03 ` [bug#73466] [PATCH 12/16] gnu: Add ocaml-ppx-deriving-hash Herman Rimm via Guix-patches via
2024-09-25  8:03 ` [bug#73466] [PATCH 13/16] gnu: ocaml-tyxml: Update to 4.6.0 Herman Rimm via Guix-patches via
2024-09-25  8:03 ` [bug#73466] [PATCH 14/16] gnu: Add ocaml-zmq Herman Rimm via Guix-patches via
2024-09-25  8:03 ` [bug#73466] [PATCH 15/16] gnu: Add ocaml-goblint-cil Herman Rimm via Guix-patches via
2024-09-25  8:03 ` [bug#73466] [PATCH 16/16] gnu: Add ocaml-goblint Herman Rimm via Guix-patches via
2024-09-25 10:01 ` [bug#73466] [PATCH 01/16] gnu: Add ocaml-jsonrpc Julien Lepiller
2024-09-26  7:23 ` [bug#73466] [PATCH v2 01/15] gnu: Add ocaml-ppx-yojson-conv-lib Herman Rimm via Guix-patches via
2024-09-26  7:23   ` [bug#73466] [PATCH v2 02/15] gnu: Add ocaml-jsonrpc Herman Rimm via Guix-patches via
2024-09-26  7:23   ` [bug#73466] [PATCH v2 03/15] gnu: Add ocaml-arg-complete Herman Rimm via Guix-patches via
2024-09-26  7:23   ` [bug#73466] [PATCH v2 04/15] gnu: Add ocaml-zmq Herman Rimm via Guix-patches via
2024-09-26  7:23   ` [bug#73466] [PATCH v2 05/15] gnu: Add ocaml-directories Herman Rimm via Guix-patches via
2024-09-26  7:23   ` [bug#73466] [PATCH v2 06/15] gnu: Add ocaml-catapult Herman Rimm via Guix-patches via
2024-09-26  7:23   ` [bug#73466] [PATCH v2 07/15] gnu: Add ocaml-zarith-stubs-js Herman Rimm via Guix-patches via
2024-09-26  7:23   ` [bug#73466] [PATCH v2 08/15] gnu: ocaml-qcheck: Update to 0.22 Herman Rimm via Guix-patches via
2024-09-26  7:23   ` [bug#73466] [PATCH v2 09/15] gnu: js-of-ocaml-compiler: Use ocaml prefix Herman Rimm via Guix-patches via
2024-09-26  7:23   ` [bug#73466] [PATCH v2 10/15] gnu: Add ocaml-json-data-encoding Herman Rimm via Guix-patches via
2024-09-26  7:23   ` [bug#73466] [PATCH v2 11/15] gnu: Add ocaml-cpu Herman Rimm via Guix-patches via
2024-09-26  7:23   ` [bug#73466] [PATCH v2 12/15] gnu: Add ocaml-ppx-deriving-hash Herman Rimm via Guix-patches via
2024-09-26  7:23   ` [bug#73466] [PATCH v2 13/15] gnu: ocaml-tyxml: Update to 4.6.0 Herman Rimm via Guix-patches via
2024-09-26  7:23   ` [bug#73466] [PATCH v2 14/15] gnu: Add ocaml-goblint-cil Herman Rimm via Guix-patches via
2024-09-26  7:23   ` [bug#73466] [PATCH v2 15/15] gnu: Add ocaml-goblint Herman Rimm via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19b7560b09846121f9b0797de0074bb68fa178da.1727250772.git.herman@rimm.ee \
    --to=guix-patches@gnu.org \
    --cc=73466@debbugs.gnu.org \
    --cc=herman@rimm.ee \
    --cc=julien@lepiller.eu \
    --cc=pukkamustard@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.