gnu: Add ocaml-ppx-cstruct.

* gnu/packages/ocaml.scm (ocaml-ppx-cstruct): New variable.

Signed-off-by: Christopher Baines <mail@cbaines.net>
This commit is contained in:
raingloom 2023-02-15 23:00:04 +01:00 committed by Christopher Baines
parent 74560bf3c3
commit a9a8d626b1
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -4462,6 +4462,22 @@ (define-public ocaml4.07-cstruct
(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")