Skip to content

Commit

Permalink
ocamlPackages.ffmpeg-swresample: fix build on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
Et7f3 committed Jan 5, 2023
1 parent 699b87b commit 50100d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkgs/development/ocaml-modules/ffmpeg/ffmpeg-swresample.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{ lib, buildDunePackage, dune-configurator, pkg-config, fetchFromGitHub, callPackage
, ffmpeg-base ? callPackage ./base.nix { }
, ffmpeg-avutil, ffmpeg-avcodec, ffmpeg
, stdenv
, VideoToolbox
}:

buildDunePackage {
Expand All @@ -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-avcodec ffmpeg.dev ];

doCheck = true;
Expand Down
1 change: 1 addition & 0 deletions pkgs/top-level/ocaml-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,7 @@ let
};
ffmpeg-swresample = callPackage ../development/ocaml-modules/ffmpeg/ffmpeg-swresample.nix {
inherit (pkgs) ffmpeg;
inherit (pkgs.darwin.apple_sdk.frameworks) VideoToolbox;
};
ffmpeg-av = callPackage ../development/ocaml-modules/ffmpeg/ffmpeg-av.nix {
inherit (pkgs) ffmpeg;
Expand Down

0 comments on commit 50100d1

Please sign in to comment.