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