[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
17/28: gnu: Add ocaml5.0-ctypes
From: |
guix-commits |
Subject: |
17/28: gnu: Add ocaml5.0-ctypes |
Date: |
Wed, 21 Dec 2022 16:11:43 -0500 (EST) |
roptat pushed a commit to branch master
in repository guix.
commit 8160d05e83d8b9284d3c6b18218cf639db90141b
Author: pukkamustard <pukkamustard@posteo.net>
AuthorDate: Fri Dec 16 13:25:16 2022 +0000
gnu: Add ocaml5.0-ctypes
* gnu/packages/ocaml.scm (ocaml5.0-ctypes): New variable.
Signed-off-by: Julien Lepiller <julien@lepiller.eu>
---
gnu/packages/ocaml.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index cb845b7ead..9040748fce 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -4800,6 +4800,7 @@ long and size_t whose sizes depend on the host platform.")
("integers" ,ocaml-integers)))
(inputs
(list libffi))
+ (properties `((ocaml5.0-variant . ,(delay ocaml5.0-ctypes))))
(synopsis "Library for binding to C libraries using pure OCaml")
(description "Ctypes is a library for binding to C libraries using pure
OCaml. The primary aim is to make writing C extensions as straightforward as
@@ -4810,6 +4811,33 @@ functions that you want to call, then bind directly to
those functions -- all
without writing or generating any C!")
(license license:expat)))
+(define-public ocaml5.0-ctypes
+ ;; Contains fix to support OCaml 5.0
+ ;; (https://github.com/ocamllabs/ocaml-ctypes/pull/709)
+ (let ((commit "52ff621f47dbc1ee5a90c30af0ae0474549946b4")
+ (revision "0"))
+ (package-with-ocaml5.0
+ (package
+ (inherit ocaml-ctypes)
+ (name "ocaml-ctypes")
+ (version (git-version "0.20.1" revision commit))
+ (home-page "https://github.com/ocamllabs/ocaml-ctypes")
+ (arguments
+ (append
+ ;; Some tests fail. Failure seems to be due to OCaml 5.0.
+ `(#:tests? #f)
+ (package-arguments ocaml-ctypes)))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url home-page)
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0vyiryqchz0mdfhal7bdivqsk5yhvzzckrqv495rlpbdxzklcp7g"))))
+ (properties '())))))
+
(define-public ocaml-ocb-stubblr
(package
(name "ocaml-ocb-stubblr")
- branch master updated (30465558bd -> fe5836feaf), guix-commits, 2022/12/21
- 13/28: gnu: Add ocaml5.0-ppx-expect., guix-commits, 2022/12/21
- 03/28: gnu: Add ocaml5.0-findlib, guix-commits, 2022/12/21
- 01/28: gnu: Add ocaml-5.0., guix-commits, 2022/12/21
- 04/28: guix: ocaml: Add package-with-ocaml5.0., guix-commits, 2022/12/21
- 15/28: gnu: Add ocaml5.0-crowbar., guix-commits, 2022/12/21
- 17/28: gnu: Add ocaml5.0-ctypes,
guix-commits <=
- 27/28: gnu: Add ocaml5.0-dot-merlin-reader., guix-commits, 2022/12/21
- 25/28: gnu: Update ocaml-merlin-lib to 4.7-414., guix-commits, 2022/12/21
- 21/28: gnu: Add ocaml5.0-eio-luv., guix-commits, 2022/12/21
- 02/28: gnu: ocaml-findlib: Update to 1.9.5., guix-commits, 2022/12/21
- 07/28: gnu: Add ocaml-monolith., guix-commits, 2022/12/21
- 08/28: gnu: Add ocaml-optint., guix-commits, 2022/12/21
- 10/28: gnu: Add ocaml5.0-base., guix-commits, 2022/12/21
- 12/28: gnu: Update ocaml-qcheck to 0.20., guix-commits, 2022/12/21
- 14/28: gnu: Update ocaml-odoc to 2.2.0., guix-commits, 2022/12/21
- 20/28: gnu: Add ocaml5.0-eio., guix-commits, 2022/12/21