ocamlPackages.ffmpeg-avutil: fix build on darwin
This commit is contained in:
parent
5c304acd43
commit
9a5b1e495f
|
@ -1,4 +1,5 @@
|
|||
{ lib, buildDunePackage, dune-configurator, pkg-config, fetchFromGitHub, callPackage
|
||||
{ lib, stdenv, buildDunePackage, dune-configurator, pkg-config, fetchFromGitHub, callPackage
|
||||
, AudioToolbox, VideoToolbox
|
||||
, ffmpeg-base ? callPackage ./base.nix { }
|
||||
, ffmpeg
|
||||
}:
|
||||
|
@ -11,7 +12,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.dev ];
|
||||
|
||||
doCheck = true;
|
||||
|
|
|
@ -448,6 +448,7 @@ let
|
|||
ffmpeg = callPackage ../development/ocaml-modules/ffmpeg { };
|
||||
ffmpeg-avutil = callPackage ../development/ocaml-modules/ffmpeg/ffmpeg-avutil.nix {
|
||||
inherit (pkgs) ffmpeg;
|
||||
inherit (pkgs.darwin.apple_sdk.frameworks) AudioToolbox VideoToolbox;
|
||||
};
|
||||
ffmpeg-avcodec = callPackage ../development/ocaml-modules/ffmpeg/ffmpeg-avcodec.nix {
|
||||
inherit (pkgs) ffmpeg;
|
||||
|
|
Loading…
Reference in a new issue