mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-26 20:49:29 -05:00
gnu: ocaml-ctypes: Don't use unstable tarball.
* gnu/packages/ocaml.scm (ocaml-ctypes)[source]: Download using git-fetch. [arguments]: Add phase to make files writable.
This commit is contained in:
parent
4d85a7dd26
commit
c8f16c7f7e
1 changed files with 14 additions and 4 deletions
|
@ -3254,12 +3254,14 @@ (define-public ocaml-ctypes
|
||||||
(version "0.14.0")
|
(version "0.14.0")
|
||||||
(home-page "https://github.com/ocamllabs/ocaml-ctypes")
|
(home-page "https://github.com/ocamllabs/ocaml-ctypes")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method git-fetch)
|
||||||
(uri (string-append home-page "/archive/" version ".tar.gz"))
|
(uri (git-reference
|
||||||
(file-name (string-append name "-" version ".tar.gz"))
|
(url home-page)
|
||||||
|
(commit version)))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0zrsd42q2nciyg9375g2kydqax6ay299rhyfgms59qiw7d9ylyp9"))))
|
"1b2q3h63ngf4x9qp65qwapf2dg9q0mcdah6qjm2q0c7v2p5vysv9"))))
|
||||||
(build-system ocaml-build-system)
|
(build-system ocaml-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f; require an old lwt
|
`(#:tests? #f; require an old lwt
|
||||||
|
@ -3267,6 +3269,14 @@ (define-public ocaml-ctypes
|
||||||
(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
|
||||||
|
(lambda _
|
||||||
|
(for-each
|
||||||
|
(lambda (file)
|
||||||
|
(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)))
|
||||||
|
|
Loading…
Reference in a new issue