diff options
author | Jakub Kądziołka <kuba@kadziolka.net> | 2020-01-16 23:14:41 +0100 |
---|---|---|
committer | Tobias Geerinckx-Rice <me@tobias.gr> | 2020-01-21 21:24:26 +0100 |
commit | 79e074ea10875ff75ca613179c70de12d64b19f5 (patch) | |
tree | 3814bb2199bc80d22c3198cb4beb84a3daf04ec9 /gnu | |
parent | a7d470e47dab0acd00da43860e19e12edd50bcbb (diff) | |
download | guix-79e074ea10875ff75ca613179c70de12d64b19f5.tar.gz |
gnu: nim: Fix /bin/sh substitution in C code.
* gnu/packages/nim.scm (nim)[arguments]: Patch the string length too. Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/nim.scm | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gnu/packages/nim.scm b/gnu/packages/nim.scm index 5694eae63b..22dac0b58a 100644 --- a/gnu/packages/nim.scm +++ b/gnu/packages/nim.scm @@ -50,10 +50,12 @@ #t))) (add-after 'patch-source-shebangs 'patch-more-shebangs (lambda _ - (substitute* (append '("tests/stdlib/tosprocterminate.nim" - "lib/pure/osproc.nim") - (find-files "c_code" "stdlib_osproc.c")) - (("/bin/sh") (which "sh"))) + (let ((sh (which "sh"))) + (substitute* '("tests/stdlib/tosprocterminate.nim" + "lib/pure/osproc.nim") + (("/bin/sh") sh)) + (substitute* (find-files "c_code" "stdlib_osproc.c") + (("\"/bin/sh\", 7") (format "~s, ~s" sh (string-length sh))))) #t)) (replace 'build (lambda _ |