aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2021-11-26 22:22:08 +0100
committerTobias Geerinckx-Rice <me@tobias.gr>2021-11-27 00:49:55 +0100
commitc6e99f78f0f8c9d4da11162acd55ec73c8625641 (patch)
treebd9327b7059d3d936527e350c0f4174d1ad3db36 /gnu/packages
parent1e4b2d8e22b4d330fcce46173519c4e81391a312 (diff)
downloadguix-c6e99f78f0f8c9d4da11162acd55ec73c8625641.tar.gz
guix-c6e99f78f0f8c9d4da11162acd55ec73c8625641.zip
gnu: kcov: Prepare for cross-compilation.
* gnu/packages/code.scm (kcov)[arguments]: Look up bash in the inputs.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/code.scm7
1 files changed, 4 insertions, 3 deletions
diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm
index 8804173a14..29479cae54 100644
--- a/gnu/packages/code.scm
+++ b/gnu/packages/code.scm
@@ -588,10 +588,11 @@ results and determine build stability.")
#: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)