nixpkgs/pkgs/development/tools/xcbuild/setup-hook.sh
Matthew Bauer fc1f6f55ea
xcbuild: Get rid of developer.nix, move to wrapper
also:

- add custom outputs "specs" for xcbuild
- get rid of unneeded tools
- update xcbuild
- add more comments
- fixup xcbuild derivations

Affected xcbuild derivations include:

- adv_cmds
- network_cmds
- basic_cmds
2016-11-15 19:13:23 -06:00

32 lines
600 B
Bash

xcbuildBuildPhase() {
export DSTROOT=$out
runHook preBuild
echo "running xcodebuild"
xcodebuild OTHER_CFLAGS="$NIX_CFLAGS_COMPILE" OTHER_CPLUSPLUSFLAGS="$NIX_CFLAGS_COMPILE" OTHER_LDFLAGS="$NIX_LDFLAGS" build
runHook postBuild
}
xcbuildInstallPhase () {
runHook preInstall
# not implemented
# xcodebuild install
runHook postInstall
}
if [ -z "$dontUseXcbuild" ]; then
buildPhase=xcbuildBuildPhase
if [ -z "$installPhase" ]; then
installPhase=xcbuildInstallPhase
fi
fi
# if [ -d "*.xcodeproj" ]; then
# buildPhase=xcbuildPhase
# fi