mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
gnu: opam: Use modify-phases.
* gnu/packages/ocaml.scm (opam)[arguments]: Use modify-phases.
This commit is contained in:
parent
1d33b9eaa9
commit
2385cab164
1 changed files with 12 additions and 14 deletions
|
@ -176,20 +176,18 @@ (define-public opam
|
|||
;; …/_obuild/opam/opam.asm install P1' failed.
|
||||
#:tests? #f
|
||||
|
||||
#:phases (alist-cons-before
|
||||
'build 'pre-build
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
#:phases (modify-phases %standard-phases
|
||||
(add-before 'build 'pre-build
|
||||
(lambda* (#:key inputs make-flags #:allow-other-keys)
|
||||
(let ((bash (assoc-ref inputs "bash")))
|
||||
(substitute* "src/core/opamSystem.ml"
|
||||
(("\"/bin/sh\"")
|
||||
(string-append "\"" bash "/bin/sh\"")))))
|
||||
(alist-cons-before
|
||||
'check 'pre-check
|
||||
(string-append "\"" bash "/bin/sh\""))))))
|
||||
(add-before 'check 'pre-check
|
||||
(lambda _
|
||||
(setenv "HOME" (getcwd))
|
||||
(and (system "git config --global user.email guix@gnu.org")
|
||||
(system "git config --global user.name Guix")))
|
||||
%standard-phases))))
|
||||
(system "git config --global user.name Guix")))))))
|
||||
(native-inputs
|
||||
`(("git" ,git) ;for the tests
|
||||
("python" ,python))) ;for the tests
|
||||
|
|
Loading…
Reference in a new issue