mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
gnu: ocaml-ocb-stubblr: Fix build failures using it.
* gnu/packages/ocaml.scm (ocaml-ocb-stubblr)[arguments]: Add a phase to fix guix-specific issues.
This commit is contained in:
parent
fbf786bd1d
commit
70a5701141
1 changed files with 9 additions and 1 deletions
|
@ -3153,7 +3153,15 @@ (define-public ocaml-ocb-stubblr
|
||||||
`(#:build-flags (list "build" "--tests" "true")
|
`(#:build-flags (list "build" "--tests" "true")
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(delete 'configure))))
|
(delete 'configure)
|
||||||
|
(add-before 'build 'fix-for-guix
|
||||||
|
(lambda _
|
||||||
|
(substitute* "src/ocb_stubblr.ml"
|
||||||
|
;; Do not fail when opam is not present or initialized
|
||||||
|
(("error_msgf \"error running opam\"") "\"\"")
|
||||||
|
;; Guix doesn't have cc, but it has gcc
|
||||||
|
(("\"cc\"") "\"gcc\""))
|
||||||
|
#t)))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("topkg" ,ocaml-topkg)
|
`(("topkg" ,ocaml-topkg)
|
||||||
("opam" ,opam)))
|
("opam" ,opam)))
|
||||||
|
|
Loading…
Reference in a new issue