xpc: copy instead of linking to sdk

This prevents the apple sdk from coming into security tool

Fixes #42836
This commit is contained in:
Matthew Bauer 2018-07-02 17:49:59 -04:00
parent 907d7518d8
commit db414a2f5e

View File

@ -160,8 +160,8 @@ in rec {
installPhase = ''
mkdir -p $out/include
pushd $out/include >/dev/null
ln -s "${lib.getDev sdk}/include/xpc"
ln -s "${lib.getDev sdk}/include/launch.h"
cp -r "${lib.getDev sdk}/include/xpc" $out/include/xpc
cp "${lib.getDev sdk}/include/launch.h" $out/include/launch.h
popd >/dev/null
'';
};