[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
53/88: gnu: ocaml4.02-ppx-deriving: Don't use unstable tarball.
From: |
guix-commits |
Subject: |
53/88: gnu: ocaml4.02-ppx-deriving: Don't use unstable tarball. |
Date: |
Wed, 10 Apr 2019 23:44:44 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit 2209b362a5fe39cff5d0950938d7a913c8c08caf
Author: Tobias Geerinckx-Rice <address@hidden>
Date: Tue Apr 9 00:11:20 2019 +0200
gnu: ocaml4.02-ppx-deriving: Don't use unstable tarball.
* gnu/packages/ocaml.scm (ocaml4.02-ppx-deriving)[source]: Use GIT-FETCH and
GIT-FILE-NAME.
[arguments]: Add ‘make-git-checkout-writable’ phase.
Fix indentation.
---
gnu/packages/ocaml.scm | 31 ++++++++++++++++++-------------
1 file changed, 18 insertions(+), 13 deletions(-)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 4495e29..d7b2eee 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -2948,13 +2948,14 @@ programs. It allows the definition of simple macros
and file inclusion. Cpp oi
(name "ocaml4.02-ppx-deriving")
(version "4.1")
(source
- (origin
- (method url-fetch)
- (uri (string-append
"https://github.com/whitequark/ppx_deriving//archive/v"
- version ".tar.gz"))
- (sha256 (base32
- "1fr16g121j6zinwcprzlhx2py4271n9jzs2m9hq2f3qli2b1p0vl"))
- (file-name (string-append name "-" version ".tar.gz"))))
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/whitequark/ppx_deriving.git")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0cy9p8d8cbcxvqyyv8fz2z9ypi121zrgaamdlp4ld9f3jnwz7my9"))))
(build-system ocaml-build-system)
(native-inputs
`(("js-build-tools" ,ocaml4.02-js-build-tools)
@@ -2969,13 +2970,17 @@ programs. It allows the definition of simple macros
and file inclusion. Cpp oi
#:findlib ,ocaml4.02-findlib
#:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'make-git-checkout-writable
+ (lambda _
+ (for-each make-file-writable (find-files "."))
+ #t))
(delete 'configure)
- (add-before 'install 'fix-environment
- (lambda* (#:key outputs #:allow-other-keys)
- ;; the installation procedures looks for the installed module
- (setenv "OCAMLPATH"
- (string-append (getenv "OCAMLPATH") ":"
- (getenv "OCAMLFIND_DESTDIR"))))))))
+ (add-before 'install 'fix-environment
+ (lambda* (#:key outputs #:allow-other-keys)
+ ;; the installation procedures looks for the installed module
+ (setenv "OCAMLPATH"
+ (string-append (getenv "OCAMLPATH") ":"
+ (getenv "OCAMLFIND_DESTDIR"))))))))
(home-page "https://github.com/whitequark/ppx_deriving/")
(synopsis "Type-driven code generation for OCaml >=4.02")
(description "Ppx_deriving provides common infrastructure for generating
- 37/88: gnu: texlive-generic-listofitems: Fix typo in synopsis., (continued)
- 37/88: gnu: texlive-generic-listofitems: Fix typo in synopsis., guix-commits, 2019/04/10
- 45/88: gnu: emacs-mkmcc-gnuplot-mode: Use GIT-FILE-NAME., guix-commits, 2019/04/10
- 50/88: gnu: ocaml-ppx-tools: Don't use unstable tarball., guix-commits, 2019/04/10
- 55/88: gnu: ocaml-re: Don't use unstable tarball., guix-commits, 2019/04/10
- 83/88: gnu: sbcl-cl-ppcre: Don't use unstable tarball., guix-commits, 2019/04/10
- 59/88: gnu: ocaml-piqilib: Don't use unstable tarball., guix-commits, 2019/04/10
- 72/88: gnu: tippecanoe: Don't use unstable tarball., guix-commits, 2019/04/10
- 57/88: gnu: ocaml4.02-uri: Don't use unstable tarball., guix-commits, 2019/04/10
- 74/88: gnu: python-gridmap: Don't use unstable tarball., guix-commits, 2019/04/10
- 66/88: gnu: emacs-academic-phrases: Use GIT-FILE-NAME., guix-commits, 2019/04/10
- 53/88: gnu: ocaml4.02-ppx-deriving: Don't use unstable tarball.,
guix-commits <=
- 64/88: gnu: gctp: Don't use unstable tarball., guix-commits, 2019/04/10
- 76/88: gnu: python-tlsh: Don't use unstable tarball., guix-commits, 2019/04/10
- 78/88: gnu: python-flasgger: Don't use unstable tarball., guix-commits, 2019/04/10
- 81/88: gnu: sbcl-fiveam: Don't use unstable tarball., guix-commits, 2019/04/10
- 34/88: gnu: clamav: Update to 0.101.2., guix-commits, 2019/04/10
- 44/88: gnu: emacs-git-annex: Use GIT-FILE-NAME., guix-commits, 2019/04/10
- 47/88: gnu: ocaml-num: Don't use unstable tarball., guix-commits, 2019/04/10
- 51/88: gnu: ocaml4.02-ppx-tools: Don't use unstable tarball., guix-commits, 2019/04/10
- 80/88: gnu: python-glob2: Don't use unstable tarball., guix-commits, 2019/04/10
- 62/88: gnu: ocaml-lambda-term: Don't use unstable tarball., guix-commits, 2019/04/10