me
/
guix
Archived
1
0
Fork 0

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
Jakub Kądziołka 2020-01-16 23:14:41 +01:00 committed by Tobias Geerinckx-Rice
parent a7d470e47d
commit 79e074ea10
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 6 additions and 4 deletions

View File

@ -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 _