xcbuild: add missing bins

A few from cctools were missing. Ideally they would not be needed but
xcode provides them & we pretty much need to as well for a lot of
xcode projects.
This commit is contained in:
Matthew Bauer 2018-06-28 19:39:40 -04:00
parent 5c757847eb
commit 394c3fe0ab

View File

@ -58,6 +58,12 @@ runCommand "nixpkgs.xctoolchain" {
ln -s ${buildPackages.indent}/bin/indent $out/usr/bin/indent
ln -s ${buildPackages.ctags}/bin/ctags $out/usr/bin/ctags
'' + optionalString stdenv.isDarwin ''
for bin in ${getBin buildPackages.darwin.cctools}/bin/*; do
if ! [ -e "$out/usr/bin/$(basename $bin)" ]; then
ln -s $bin $out/usr/bin
fi
done
ln -s ${buildPackages.darwin.bootstrap_cmds}/bin/mig $out/usr/bin
ln -s ${mkdep-darwin-src} $out/usr/bin/mkdep
'')