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.
This commit is contained in:
parent
f8b8e60e2c
commit
2209b362a5
|
@ -2948,13 +2948,14 @@ programs. It allows the definition of simple macros and file inclusion. Cpp oi
|
||||||
(name "ocaml4.02-ppx-deriving")
|
(name "ocaml4.02-ppx-deriving")
|
||||||
(version "4.1")
|
(version "4.1")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method git-fetch)
|
||||||
(uri (string-append "https://github.com/whitequark/ppx_deriving//archive/v"
|
(uri (git-reference
|
||||||
version ".tar.gz"))
|
(url "https://github.com/whitequark/ppx_deriving.git")
|
||||||
(sha256 (base32
|
(commit (string-append "v" version))))
|
||||||
"1fr16g121j6zinwcprzlhx2py4271n9jzs2m9hq2f3qli2b1p0vl"))
|
(file-name (git-file-name name version))
|
||||||
(file-name (string-append name "-" version ".tar.gz"))))
|
(sha256
|
||||||
|
(base32 "0cy9p8d8cbcxvqyyv8fz2z9ypi121zrgaamdlp4ld9f3jnwz7my9"))))
|
||||||
(build-system ocaml-build-system)
|
(build-system ocaml-build-system)
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("js-build-tools" ,ocaml4.02-js-build-tools)
|
`(("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
|
#:findlib ,ocaml4.02-findlib
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'make-git-checkout-writable
|
||||||
|
(lambda _
|
||||||
|
(for-each make-file-writable (find-files "."))
|
||||||
|
#t))
|
||||||
(delete 'configure)
|
(delete 'configure)
|
||||||
(add-before 'install 'fix-environment
|
(add-before 'install 'fix-environment
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
;; the installation procedures looks for the installed module
|
;; the installation procedures looks for the installed module
|
||||||
(setenv "OCAMLPATH"
|
(setenv "OCAMLPATH"
|
||||||
(string-append (getenv "OCAMLPATH") ":"
|
(string-append (getenv "OCAMLPATH") ":"
|
||||||
(getenv "OCAMLFIND_DESTDIR"))))))))
|
(getenv "OCAMLFIND_DESTDIR"))))))))
|
||||||
(home-page "https://github.com/whitequark/ppx_deriving/")
|
(home-page "https://github.com/whitequark/ppx_deriving/")
|
||||||
(synopsis "Type-driven code generation for OCaml >=4.02")
|
(synopsis "Type-driven code generation for OCaml >=4.02")
|
||||||
(description "Ppx_deriving provides common infrastructure for generating
|
(description "Ppx_deriving provides common infrastructure for generating
|
||||||
|
|
Loading…
Reference in New Issue