guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

15/45: gnu: Add ocaml-ppx-cstruct.


From: guix-commits
Subject: 15/45: gnu: Add ocaml-ppx-cstruct.
Date: Fri, 17 Feb 2023 10:49:32 -0500 (EST)

cbaines pushed a commit to branch master
in repository guix.

commit a9a8d626b1e6b1a055b63932be432cc8d66792c5
Author: raingloom <raingloom@riseup.net>
AuthorDate: Wed Feb 15 23:00:04 2023 +0100

    gnu: Add ocaml-ppx-cstruct.
    
    * gnu/packages/ocaml.scm (ocaml-ppx-cstruct): New variable.
    
    Signed-off-by: Christopher Baines <mail@cbaines.net>
---
 gnu/packages/ocaml.scm | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 9069b320e9..7a9e8d4f89 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -4462,6 +4462,22 @@ writing to these structures, and they are accessed via 
the Bigarray module.")
 (define ocaml-cstruct-unix ocaml-cstruct)
 (define ocaml-cstruct-sexp ocaml-cstruct)
 
+(define-public ocaml-ppx-cstruct
+  (package
+    (inherit ocaml-cstruct)
+    (name "ocaml-ppx-cstruct")
+    (properties `((upstream-name . "ppx_cstruct")))
+    (arguments
+     '(#:package "ppx_cstruct"
+       ;; TODO doesn't find test deps for some reason?
+       ;; I have no clue why.
+       #:tests? #f))
+    (propagated-inputs (modify-inputs (package-propagated-inputs ocaml-cstruct)
+                         (append ocaml-cstruct ocaml-ppxlib ocaml-sexplib)))
+    (native-inputs (modify-inputs (package-propagated-inputs ocaml-cstruct)
+                     (append ocaml-cstruct-sexp ocaml-findlib
+                             ocaml-ppx-sexp-conv)))))
+
 (define-public ocaml-hex
   (package
     (name "ocaml-hex")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]