Merge pull request #267307 from reckenrode/corevideo-fix

darwin.apple_sdk_11_0.frameworks.CoreVideo: switch to sed
This commit is contained in:
Weijia Wang 2023-11-17 00:35:24 +01:00 committed by GitHub
commit a187c6998e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -229,8 +229,8 @@ in rec {
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
sed -e "/CFBase.h/ i #include <stdint.h>" \
-i $out/Library/Frameworks/CoreVideo.framework/Headers/CVBase.h
'';
});