Archived
1
0
Fork 0

gnu: ocaml4.07-piqi: Don't use unstable tarball.

* gnu/packages/ocaml.scm (ocaml4.07-piqi)[source]: Download using
git-fetch.
[arguments]: Add custom phase to make files writable.
This commit is contained in:
Efraim Flashner 2020-06-24 10:35:56 +03:00
parent d5c0b3fa7e
commit 2d84ef328c
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -2940,13 +2940,14 @@ and 4 (random based) according to RFC 4122.")
(name "ocaml4.07-piqi") (name "ocaml4.07-piqi")
(version "0.7.7") (version "0.7.7")
(source (origin (source (origin
(method url-fetch) (method git-fetch)
(uri (string-append "https://github.com/alavrik/piqi-ocaml/" (uri (git-reference
"archive/v" version ".tar.gz")) (url "https://github.com/alavrik/piqi-ocaml")
(file-name (string-append name "-" version ".tar.gz")) (commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"1l0b4saxmwqgw9mb10mwrz31lvpj3l0abh3cwarqp0x4vdrzshbh")))) "1913jpsb8mvqi8609j4g4sm5jhg50dq0xqxgy8nmvknfryyc89nm"))))
(build-system ocaml-build-system) (build-system ocaml-build-system)
(arguments (arguments
`(#:make-flags `(#:make-flags
@ -2955,6 +2956,10 @@ and 4 (random based) according to RFC 4122.")
"/bin/sh")) "/bin/sh"))
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'make-files-writable
(lambda _
(for-each make-file-writable (find-files "."))
#t))
(delete 'configure)) (delete 'configure))
#:ocaml ,ocaml-4.07 #:ocaml ,ocaml-4.07
#:findlib ,ocaml4.07-findlib)) #:findlib ,ocaml4.07-findlib))