ocamlPackages.ffmpeg-avdevice: fix build on darwin
This commit is contained in:
parent
278da9f093
commit
699b87b8a4
|
@ -1,6 +1,14 @@
|
|||
{ lib, buildDunePackage, dune-configurator, pkg-config, fetchFromGitHub, callPackage
|
||||
, AppKit
|
||||
, AudioToolbox
|
||||
, Cocoa
|
||||
, CoreImage
|
||||
, ForceFeedback
|
||||
, ffmpeg-base ? callPackage ./base.nix { }
|
||||
, ffmpeg-av, ffmpeg
|
||||
, OpenGL
|
||||
, stdenv
|
||||
, VideoToolbox
|
||||
}:
|
||||
|
||||
buildDunePackage {
|
||||
|
@ -11,7 +19,8 @@ buildDunePackage {
|
|||
inherit (ffmpeg-base) version src useDune2;
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ dune-configurator ];
|
||||
buildInputs = [ dune-configurator ]
|
||||
++ lib.optionals stdenv.isDarwin [ AppKit AudioToolbox Cocoa CoreImage ForceFeedback OpenGL VideoToolbox ];
|
||||
propagatedBuildInputs = [ ffmpeg-av ffmpeg.dev ];
|
||||
|
||||
doCheck = true;
|
||||
|
|
|
@ -473,6 +473,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;
|
||||
};
|
||||
|
||||
fiber = callPackage ../development/ocaml-modules/fiber { };
|
||||
|
|
Loading…
Reference in a new issue