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)))
|
#t)))
|
||||||
(add-after 'patch-source-shebangs 'patch-more-shebangs
|
(add-after 'patch-source-shebangs 'patch-more-shebangs
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* (append '("tests/stdlib/tosprocterminate.nim"
|
(let ((sh (which "sh")))
|
||||||
"lib/pure/osproc.nim")
|
(substitute* '("tests/stdlib/tosprocterminate.nim"
|
||||||
(find-files "c_code" "stdlib_osproc.c"))
|
"lib/pure/osproc.nim")
|
||||||
(("/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))
|
#t))
|
||||||
(replace 'build
|
(replace 'build
|
||||||
(lambda _
|
(lambda _
|
||||||
|
|
Reference in New Issue