Merge pull request #255188 from NickCao/make-binary-wrapper

makeBinaryWrapper.extractCmd: fix use in cross compilation
This commit is contained in:
Artturi 2023-09-17 17:31:00 +03:00 committed by GitHub
commit 9466d15361
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ makeSetupHook {
passthru = {
# Extract the function call used to create a binary wrapper from its embedded docstring
extractCmd = writeShellScript "extract-binary-wrapper-cmd" ''
strings -dw "$1" | sed -n '/^makeCWrapper/,/^$/ p'
${cc.bintools.targetPrefix}strings -dw "$1" | sed -n '/^makeCWrapper/,/^$/ p'
'';
tests = tests.makeBinaryWrapper;