mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-24 11:39:46 -05:00
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>
This commit is contained in:
parent
a7d470e47d
commit
79e074ea10
1 changed files with 6 additions and 4 deletions
|
@ -50,10 +50,12 @@ (define-public nim
|
|||
#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 _
|
||||
|
|
Loading…
Reference in a new issue