ocamlPackages.ffmpeg-av: fix build on darwin
This commit is contained in:
parent
50f77e3b9d
commit
278da9f093
|
@ -1,6 +1,10 @@
|
|||
{ lib, buildDunePackage, dune-configurator, pkg-config, fetchFromGitHub, callPackage
|
||||
, AudioToolbox
|
||||
, ffmpeg-base ? callPackage ./base.nix { }
|
||||
, ffmpeg-avutil, ffmpeg-avcodec, ffmpeg }:
|
||||
, ffmpeg-avutil, ffmpeg-avcodec, ffmpeg
|
||||
, stdenv
|
||||
, VideoToolbox
|
||||
}:
|
||||
|
||||
buildDunePackage {
|
||||
pname = "ffmpeg-av";
|
||||
|
@ -10,7 +14,7 @@ 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-avcodec ffmpeg.dev ];
|
||||
|
||||
doCheck = true;
|
||||
|
|
|
@ -469,6 +469,7 @@ let
|
|||
};
|
||||
ffmpeg-av = callPackage ../development/ocaml-modules/ffmpeg/ffmpeg-av.nix {
|
||||
inherit (pkgs) ffmpeg;
|
||||
inherit (pkgs.darwin.apple_sdk.frameworks) AudioToolbox VideoToolbox;
|
||||
};
|
||||
ffmpeg-avdevice = callPackage ../development/ocaml-modules/ffmpeg/ffmpeg-avdevice.nix {
|
||||
inherit (pkgs) ffmpeg;
|
||||
|
|
Loading…
Reference in a new issue