makeBinaryWrapper.extractCmd: fix use in cross compilation

Nick Cao c6e11d15 e5d8baaf

+1 -1
+1 -1
pkgs/build-support/setup-hooks/make-binary-wrapper/default.nix
··· 19 passthru = { 20 # Extract the function call used to create a binary wrapper from its embedded docstring 21 extractCmd = writeShellScript "extract-binary-wrapper-cmd" '' 22 - strings -dw "$1" | sed -n '/^makeCWrapper/,/^$/ p' 23 ''; 24 25 tests = tests.makeBinaryWrapper;
··· 19 passthru = { 20 # Extract the function call used to create a binary wrapper from its embedded docstring 21 extractCmd = writeShellScript "extract-binary-wrapper-cmd" '' 22 + ${cc.bintools.targetPrefix}strings -dw "$1" | sed -n '/^makeCWrapper/,/^$/ p' 23 ''; 24 25 tests = tests.makeBinaryWrapper;