darwin/IOKit: use darwin-stubs
This commit is contained in:
parent
03988a5fec
commit
193c91233c
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user