diff options
author | Stéphan Kochen <git@stephank.nl> | 2022-09-10 13:47:04 +0200 |
---|---|---|
committer | Stéphan Kochen <git@stephank.nl> | 2022-10-10 21:25:43 +0200 |
commit | e23a97700f4e5efcf85040693f2752408e67cccd (patch) | |
tree | 7f618d3ec277b66b4ecce59213bce29c2b3d52b0 /pkgs/os-specific/darwin/apple-sdk-11.0 | |
parent | 6a20451ac0af693a95dd071c1e525b06c04c0ceb (diff) | |
download | nixpkgs-e23a97700f4e5efcf85040693f2752408e67cccd.tar nixpkgs-e23a97700f4e5efcf85040693f2752408e67cccd.tar.gz nixpkgs-e23a97700f4e5efcf85040693f2752408e67cccd.tar.bz2 nixpkgs-e23a97700f4e5efcf85040693f2752408e67cccd.tar.lz nixpkgs-e23a97700f4e5efcf85040693f2752408e67cccd.tar.xz nixpkgs-e23a97700f4e5efcf85040693f2752408e67cccd.tar.zst nixpkgs-e23a97700f4e5efcf85040693f2752408e67cccd.zip |
apple_sdk_11_0: Fix missing CoreVideo include
Diffstat (limited to 'pkgs/os-specific/darwin/apple-sdk-11.0')
-rw-r--r-- | pkgs/os-specific/darwin/apple-sdk-11.0/apple_sdk.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/os-specific/darwin/apple-sdk-11.0/apple_sdk.nix b/pkgs/os-specific/darwin/apple-sdk-11.0/apple_sdk.nix index 6bde5dfb2bc..ee384fb1213 100644 --- a/pkgs/os-specific/darwin/apple-sdk-11.0/apple_sdk.nix +++ b/pkgs/os-specific/darwin/apple-sdk-11.0/apple_sdk.nix @@ -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 = ( |