diff options
author | Tobias Geerinckx-Rice <me@tobias.gr> | 2021-11-26 22:22:08 +0100 |
---|---|---|
committer | Tobias Geerinckx-Rice <me@tobias.gr> | 2021-11-27 00:49:55 +0100 |
commit | c6e99f78f0f8c9d4da11162acd55ec73c8625641 (patch) | |
tree | bd9327b7059d3d936527e350c0f4174d1ad3db36 /gnu/packages/code.scm | |
parent | 1e4b2d8e22b4d330fcce46173519c4e81391a312 (diff) | |
download | guix-c6e99f78f0f8c9d4da11162acd55ec73c8625641.tar.gz |
gnu: kcov: Prepare for cross-compilation.
* gnu/packages/code.scm (kcov)[arguments]: Look up bash in the inputs.
Diffstat (limited to 'gnu/packages/code.scm')
-rw-r--r-- | gnu/packages/code.scm | 7 |
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) |