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.
|
# Someday it'll make sense to split these out into their own packages, but today is not that day.
|
||||||
appleDerivation {
|
appleDerivation {
|
||||||
@ -14,12 +14,15 @@ appleDerivation {
|
|||||||
];
|
];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
###### IMPURITIES
|
|
||||||
mkdir -p $out/Library/Frameworks/IOKit.framework
|
mkdir -p $out/Library/Frameworks/IOKit.framework
|
||||||
pushd $out/Library/Frameworks/IOKit.framework
|
|
||||||
ln -s /System/Library/Frameworks/IOKit.framework/IOKit
|
###### IMPURITIES
|
||||||
ln -s /System/Library/Frameworks/IOKit.framework/Resources
|
ln -s /System/Library/Frameworks/IOKit.framework/Resources \
|
||||||
popd
|
$out/Library/Frameworks/IOKit.framework
|
||||||
|
|
||||||
|
###### STUBS
|
||||||
|
cp ${darwin-stubs}/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit.tbd \
|
||||||
|
$out/Library/Frameworks/IOKit.framework
|
||||||
|
|
||||||
###### HEADERS
|
###### HEADERS
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user