darwin/IOKit: use darwin-stubs

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

View File

@ -1,4 +1,4 @@
{ stdenv, appleDerivation, IOKitSrcs, xnu }:
{ stdenv, appleDerivation, IOKitSrcs, xnu, darwin-stubs }:
# Someday it'll make sense to split these out into their own packages, but today is not that day.
appleDerivation {
@ -14,12 +14,15 @@ appleDerivation {
];
installPhase = ''
###### IMPURITIES
mkdir -p $out/Library/Frameworks/IOKit.framework
pushd $out/Library/Frameworks/IOKit.framework
ln -s /System/Library/Frameworks/IOKit.framework/IOKit
ln -s /System/Library/Frameworks/IOKit.framework/Resources
popd
###### IMPURITIES
ln -s /System/Library/Frameworks/IOKit.framework/Resources \
$out/Library/Frameworks/IOKit.framework
###### STUBS
cp ${darwin-stubs}/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit.tbd \
$out/Library/Frameworks/IOKit.framework
###### HEADERS