gnu: ocaml-ctypes: Update to 0.19.1.
* gnu/packages/ocaml.scm (ocaml-ctypes): Update to 0.19.1. [arguments]<#:tests?>: Enable. <#phases>{make-writable}: Simplify. [inputs]: Remove ocaml-topkg and opam. Move ocaml-ounit and ocaml-lwt to ... [native-inputs]: ... here. Signed-off-by: Julien Lepiller <julien@lepiller.eu>master
parent
76177e816a
commit
a0804f4445
|
@ -4014,7 +4014,7 @@ long and size_t whose sizes depend on the host platform.")
|
||||||
(define-public ocaml-ctypes
|
(define-public ocaml-ctypes
|
||||||
(package
|
(package
|
||||||
(name "ocaml-ctypes")
|
(name "ocaml-ctypes")
|
||||||
(version "0.18.0")
|
(version "0.19.1")
|
||||||
(home-page "https://github.com/ocamllabs/ocaml-ctypes")
|
(home-page "https://github.com/ocamllabs/ocaml-ctypes")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
|
@ -4024,34 +4024,27 @@ long and size_t whose sizes depend on the host platform.")
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"03zrbnl16m67ls0yfhq7a4k4238x6x6b3m456g4dw2yqwc153vks"))))
|
"1xi1a486gssrb23zln3sf7zn0rmyl1k684bdf9iqkhgpz607fq6s"))))
|
||||||
(build-system ocaml-build-system)
|
(build-system ocaml-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f; require an old lwt
|
`(#:make-flags
|
||||||
#:make-flags
|
|
||||||
(list (string-append "INSTALL_HEADERS = $(wildcard $($(PROJECT).dir)/*.h)"))
|
(list (string-append "INSTALL_HEADERS = $(wildcard $($(PROJECT).dir)/*.h)"))
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'make-writable
|
(add-after 'unpack 'make-writable
|
||||||
(lambda _
|
(lambda _
|
||||||
(for-each
|
(for-each make-file-writable
|
||||||
(lambda (file)
|
(find-files "."))))
|
||||||
(let ((stat (stat file)))
|
|
||||||
(chmod file (+ #o200 (stat:mode stat)))))
|
|
||||||
(find-files "." "."))
|
|
||||||
#t))
|
|
||||||
(delete 'configure))))
|
(delete 'configure))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("pkg-config" ,pkg-config)))
|
`(("pkg-config" ,pkg-config)
|
||||||
|
("ounit" ,ocaml-ounit)
|
||||||
|
("lwt" ,ocaml-lwt)))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("bigarray-compat" ,ocaml-bigarray-compat)
|
`(("bigarray-compat" ,ocaml-bigarray-compat)
|
||||||
("integers" ,ocaml-integers)))
|
("integers" ,ocaml-integers)))
|
||||||
(inputs
|
(inputs
|
||||||
`(("libffi" ,libffi)
|
`(("libffi" ,libffi)))
|
||||||
("ounit" ,ocaml-ounit)
|
|
||||||
("lwt" ,ocaml-lwt)
|
|
||||||
("topkg" ,ocaml-topkg)
|
|
||||||
("opam" ,opam)))
|
|
||||||
(synopsis "Library for binding to C libraries using pure OCaml")
|
(synopsis "Library for binding to C libraries using pure OCaml")
|
||||||
(description "Ctypes is a library for binding to C libraries using pure
|
(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
|
OCaml. The primary aim is to make writing C extensions as straightforward as
|
||||||
|
|
Reference in New Issue