mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -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
|
||||
(modify-phases %standard-phases
|
||||
(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?$")
|
||||
(("/bin/bash") (which "bash"))
|
||||
(("/bin/sh") (which "sh"))))))))
|
||||
(("/bin/(bash|sh)" shell)
|
||||
(string-append (assoc-ref inputs "bash") shell)))))))))
|
||||
(inputs
|
||||
`(("curl" ,curl)
|
||||
("elfutils" ,elfutils)
|
||||
|
|
Loading…
Reference in a new issue