makeBinaryWrapper.extractCmd: fix use in cross compilation

This commit is contained in:
Nick Cao 2023-09-14 17:51:06 -04:00
parent e5d8baafcd
commit c6e11d15ce
No known key found for this signature in database

View File

@ -19,7 +19,7 @@ makeSetupHook {
passthru = { passthru = {
# Extract the function call used to create a binary wrapper from its embedded docstring # Extract the function call used to create a binary wrapper from its embedded docstring
extractCmd = writeShellScript "extract-binary-wrapper-cmd" '' 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; tests = tests.makeBinaryWrapper;