mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 22:38:07 -05:00
gnu: kcov: Prepare for cross-compilation.
* gnu/packages/code.scm (kcov)[arguments]: Look up bash in the inputs.
This commit is contained in:
parent
1e4b2d8e22
commit
c6e99f78f0
1 changed files with 4 additions and 3 deletions
|
@ -588,10 +588,11 @@ (define-public kcov
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'fix-/bin/bash-references
|
(add-after 'unpack 'fix-/bin/bash-references
|
||||||
(lambda _
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
(let ((bash (assoc-ref inputs "bash")))
|
||||||
(substitute* (find-files "src" ".*\\.cc?$")
|
(substitute* (find-files "src" ".*\\.cc?$")
|
||||||
(("/bin/bash") (which "bash"))
|
(("/bin/(bash|sh)" shell)
|
||||||
(("/bin/sh") (which "sh"))))))))
|
(string-append (assoc-ref inputs "bash") shell)))))))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("curl" ,curl)
|
`(("curl" ,curl)
|
||||||
("elfutils" ,elfutils)
|
("elfutils" ,elfutils)
|
||||||
|
|
Loading…
Reference in a new issue