makeBinaryWrapper: use GNU bintools for extractCmd (#379014)

This commit is contained in:
Pol Dellaiera
2025-06-10 04:31:11 +02:00
committed by GitHub
@@ -25,7 +25,7 @@ makeSetupHook {
passthru = {
# Extract the function call used to create a binary wrapper from its embedded docstring
extractCmd = writeShellScript "extract-binary-wrapper-cmd" ''
${cc.bintools.targetPrefix}strings -dw "$1" | sed -n '/^makeCWrapper/,/^$/ p'
${targetPackages.gnuStdenv.cc.bintools.targetPrefix}strings -dw "$1" | sed -n '/^makeCWrapper/,/^$/ p'
'';
tests = tests.makeBinaryWrapper;