apple_sdk_11_0: Fix missing CoreVideo include

This commit is contained in:
Stéphan Kochen 2022-09-10 13:47:04 +02:00
parent 6a20451ac0
commit e23a97700f

View File

@ -171,6 +171,15 @@ in rec {
# Seems to be appropriate given https://developer.apple.com/forums/thread/666686
JavaVM = super.JavaNativeFoundation;
CoreVideo = lib.overrideDerivation super.CoreVideo (drv: {
installPhase = drv.installPhase + ''
# When used as a module, complains about a missing import for
# Darwin.C.stdint. Apparently fixed in later SDKs.
awk -i inplace '/CFBase.h/ { print "#include <stdint.h>" } { print }' \
$out/Library/Frameworks/CoreVideo.framework/Headers/CVBase.h
'';
});
};
bareFrameworks = (