ocamlPackages.ffmpeg-avfilter: fix build on darwin

This commit is contained in:
Et7f3 2023-01-05 03:55:58 +01:00
parent be7dbbe589
commit eddbd3d8e2
2 changed files with 8 additions and 1 deletions

View file

@ -1,6 +1,11 @@
{ lib, buildDunePackage, dune-configurator, pkg-config, fetchFromGitHub, callPackage
, AppKit
, CoreImage
, ffmpeg-base ? callPackage ./base.nix { }
, ffmpeg-avutil, ffmpeg
, OpenGL
, stdenv
, VideoToolbox
}:
buildDunePackage {
@ -11,7 +16,8 @@ buildDunePackage {
inherit (ffmpeg-base) version src useDune2;
nativeBuildInputs = [ pkg-config ];
buildInputs = [ dune-configurator ];
buildInputs = [ dune-configurator ]
++ lib.optionals stdenv.isDarwin [ AppKit CoreImage OpenGL VideoToolbox ];
propagatedBuildInputs = [ ffmpeg-avutil ffmpeg.dev ];
doCheck = true;

View file

@ -458,6 +458,7 @@ let
};
ffmpeg-avfilter = callPackage ../development/ocaml-modules/ffmpeg/ffmpeg-avfilter.nix {
inherit (pkgs) ffmpeg;
inherit (pkgs.darwin.apple_sdk.frameworks) AppKit CoreImage OpenGL VideoToolbox;
};
ffmpeg-swscale = callPackage ../development/ocaml-modules/ffmpeg/ffmpeg-swscale.nix {
inherit (pkgs) ffmpeg;