3
0
Fork 0
forked from mirrors/nixpkgs

ocamlPackages.ffmpeg-avdevice: add missing AVFoundation library on macOS

This commit is contained in:
Antonio Nuno Monteiro 2023-03-10 21:10:14 -08:00
parent 1e21dd6102
commit a48e7da55a
2 changed files with 13 additions and 2 deletions

View file

@ -1,6 +1,7 @@
{ lib, buildDunePackage, dune-configurator, pkg-config, fetchFromGitHub, callPackage
, AppKit
, AudioToolbox
, AVFoundation
, Cocoa
, CoreImage
, ForceFeedback
@ -20,7 +21,17 @@ buildDunePackage {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ dune-configurator ]
++ lib.optionals stdenv.isDarwin [ AppKit AudioToolbox Cocoa CoreImage ForceFeedback OpenGL VideoToolbox ];
++ lib.optionals stdenv.isDarwin [
AppKit
AudioToolbox
AVFoundation
Cocoa
CoreImage
ForceFeedback
OpenGL
VideoToolbox
];
propagatedBuildInputs = [ ffmpeg-av ffmpeg.dev ];
doCheck = true;

View file

@ -483,7 +483,7 @@ let
};
ffmpeg-avdevice = callPackage ../development/ocaml-modules/ffmpeg/ffmpeg-avdevice.nix {
inherit (pkgs) ffmpeg;
inherit (pkgs.darwin.apple_sdk.frameworks) AppKit AudioToolbox Cocoa CoreImage ForceFeedback OpenGL VideoToolbox;
inherit (pkgs.darwin.apple_sdk.frameworks) AppKit AudioToolbox AVFoundation Cocoa CoreImage ForceFeedback OpenGL VideoToolbox;
};
fiber = callPackage ../development/ocaml-modules/fiber { };