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>master
parent
a7d470e47d
commit
79e074ea10
|
@ -50,10 +50,12 @@
|
|||
#t)))
|
||||
(add-after 'patch-source-shebangs 'patch-more-shebangs
|
||||
(lambda _
|
||||
(substitute* (append '("tests/stdlib/tosprocterminate.nim"
|
||||
(let ((sh (which "sh")))
|
||||
(substitute* '("tests/stdlib/tosprocterminate.nim"
|
||||
"lib/pure/osproc.nim")
|
||||
(find-files "c_code" "stdlib_osproc.c"))
|
||||
(("/bin/sh") (which "sh")))
|
||||
(("/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 _
|
||||
|
|
Reference in New Issue