darwin: fix *_cmds installation

These just copy commands from Products/Release/. But with #52256 we
now build .dsym directories that somehow wind up in Products/Release/.
This makes things more exact by just copying the files in Products/Release/.
This commit is contained in:
Matthew Bauer
2018-12-29 23:58:10 -06:00
parent d0dc91d24f
commit 4f522648cb
8 changed files with 37 additions and 16 deletions
@@ -28,8 +28,11 @@ appleDerivation rec {
# temporary install phase until xcodebuild has "install" support
installPhase = ''
mkdir -p $out/usr/bin
install Products/Release/* $out/usr/bin
for f in Products/Release/*; do
if [ -f $f ]; then
install -D $f $out/usr/bin/$(basename $f)
fi
done
export DSTROOT=$out
export SRCROOT=$PWD