gnu: opam: Use modify-phases.
* gnu/packages/ocaml.scm (opam)[arguments]: Use modify-phases.
This commit is contained in:
parent
1d33b9eaa9
commit
2385cab164
|
@ -176,20 +176,18 @@ functional, imperative and object-oriented styles of programming.")
|
||||||
;; …/_obuild/opam/opam.asm install P1' failed.
|
;; …/_obuild/opam/opam.asm install P1' failed.
|
||||||
#:tests? #f
|
#:tests? #f
|
||||||
|
|
||||||
#:phases (alist-cons-before
|
#:phases (modify-phases %standard-phases
|
||||||
'build 'pre-build
|
(add-before 'build 'pre-build
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs make-flags #:allow-other-keys)
|
||||||
(let ((bash (assoc-ref inputs "bash")))
|
(let ((bash (assoc-ref inputs "bash")))
|
||||||
(substitute* "src/core/opamSystem.ml"
|
(substitute* "src/core/opamSystem.ml"
|
||||||
(("\"/bin/sh\"")
|
(("\"/bin/sh\"")
|
||||||
(string-append "\"" bash "/bin/sh\"")))))
|
(string-append "\"" bash "/bin/sh\""))))))
|
||||||
(alist-cons-before
|
(add-before 'check 'pre-check
|
||||||
'check 'pre-check
|
(lambda _
|
||||||
(lambda _
|
(setenv "HOME" (getcwd))
|
||||||
(setenv "HOME" (getcwd))
|
(and (system "git config --global user.email guix@gnu.org")
|
||||||
(and (system "git config --global user.email guix@gnu.org")
|
(system "git config --global user.name Guix")))))))
|
||||||
(system "git config --global user.name Guix")))
|
|
||||||
%standard-phases))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("git" ,git) ;for the tests
|
`(("git" ,git) ;for the tests
|
||||||
("python" ,python))) ;for the tests
|
("python" ,python))) ;for the tests
|
||||||
|
|
Loading…
Reference in New Issue