darwin/Security: use darwin-stubs

This commit is contained in:
Andrew Childs 2020-09-18 17:11:11 +09:00
parent b176ad9546
commit 03988a5fec

View file

@ -1,4 +1,4 @@
{ appleDerivation }:
{ appleDerivation, darwin-stubs }:
appleDerivation {
phases = [ "unpackPhase" "installPhase" ];
@ -12,14 +12,15 @@ appleDerivation {
];
installPhase = ''
###### IMPURITIES
mkdir -p $out/Library/Frameworks/Security.framework
pushd $out/Library/Frameworks/Security.framework
ln -s /System/Library/Frameworks/Security.framework/Security
ln -s /System/Library/Frameworks/Security.framework/Resources
ln -s /System/Library/Frameworks/Security.framework/PlugIns
ln -s /System/Library/Frameworks/Security.framework/XPCServices
popd
###### IMPURITIES
ln -s /System/Library/Frameworks/Security.framework/{Resources,Plugins,XPCServices} \
$out/Library/Frameworks/Security.framework
###### STUBS
cp ${darwin-stubs}/System/Library/Frameworks/Security.framework/Versions/A/Security.tbd \
$out/Library/Frameworks/Security.framework
###### HEADERS