ocamlPackages.ffmpeg-swscale: fix build on darwin
This commit is contained in:
parent
eddbd3d8e2
commit
50f77e3b9d
|
@ -1,6 +1,8 @@
|
|||
{ lib, buildDunePackage, dune-configurator, pkg-config, fetchFromGitHub, callPackage
|
||||
, ffmpeg-base ? callPackage ./base.nix { }
|
||||
, ffmpeg-avutil, ffmpeg
|
||||
, stdenv
|
||||
, VideoToolbox
|
||||
}:
|
||||
|
||||
buildDunePackage {
|
||||
|
@ -11,7 +13,7 @@ buildDunePackage {
|
|||
inherit (ffmpeg-base) version src useDune2;
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ dune-configurator ];
|
||||
buildInputs = [ dune-configurator ] ++ lib.optionals stdenv.isDarwin [ VideoToolbox ];
|
||||
propagatedBuildInputs = [ ffmpeg-avutil ffmpeg.dev ];
|
||||
|
||||
doCheck = true;
|
||||
|
|
|
@ -462,6 +462,7 @@ let
|
|||
};
|
||||
ffmpeg-swscale = callPackage ../development/ocaml-modules/ffmpeg/ffmpeg-swscale.nix {
|
||||
inherit (pkgs) ffmpeg;
|
||||
inherit (pkgs.darwin.apple_sdk.frameworks) VideoToolbox;
|
||||
};
|
||||
ffmpeg-swresample = callPackage ../development/ocaml-modules/ffmpeg/ffmpeg-swresample.nix {
|
||||
inherit (pkgs) ffmpeg;
|
||||
|
|
Loading…
Reference in a new issue