Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
63 lines (58 sloc) 2.1 KB
opam-version: "2.0"
maintainer: ""
homepage: ""
doc: ""
dev-repo: "git+"
bug-reports: ""
license: "MIT"
build: [
[make "XEN=%{mirage-xen:enable}%" "libffi.config"]
["touch" "libffi.config"] {!ctypes-foreign:installed}
[make "XEN=%{mirage-xen:enable}%" "ctypes-base" "ctypes-stubs"]
[make "XEN=%{mirage-xen:enable}%" "ctypes-foreign"]
[make "test"] {with-test & ocaml:version < "4.06.0"}
install: [
[make "install" "XEN=%{mirage-xen:enable}%"]
remove: [
["ocamlfind" "remove" "ctypes"]
depends: [
"ocaml" {>= "4.01.0"}
"integers" { < "0.3.0" }
"ocamlfind" {build}
"conf-pkg-config" {build}
"lwt" {with-test & >= "2.4.7" & < "4.0.0"}
"ounit" {with-test}
"ctypes-foreign" {with-test}
"conf-ncurses" {with-test}
depopts: [
tags: ["org:ocamllabs" "org:mirage"]
synopsis: "Combinators for binding to C libraries without writing any C."
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 possible.
The core of ctypes is a set of combinators for describing the structure of C
types -- numeric types, arrays, pointers, structs, unions and functions. You
can use these combinators to describe the types of the functions that you want
to call, then bind directly to those functions -- all without writing or
generating any C!
To install the optional `ctypes.foreign` interface (which uses `libffi` to
provide dynamic access to foreign libraries), you will need to also install
the `ctypes-foreign` optional dependency:
opam install ctypes ctypes-foreign
This will make the `ctypes.foreign` ocamlfind subpackage available."""
authors: ""
flags: light-uninstall
url {
src: ""
checksum: "md5=4dd798e84b93cd97fbd605d023a0a707"
You can’t perform that action at this time.