2024-05-26 20:08:40 +02:00
|
|
|
{ lib, buildDunePackage, dune-configurator, pkg-config, callPackage
|
2023-01-05 04:04:43 +01:00
|
|
|
, AudioToolbox
|
2021-10-31 04:15:16 +01:00
|
|
|
, ffmpeg-base ? callPackage ./base.nix { }
|
2023-01-05 04:04:43 +01:00
|
|
|
, ffmpeg-avutil, ffmpeg-avcodec, ffmpeg
|
|
|
|
, stdenv
|
|
|
|
, VideoToolbox
|
|
|
|
}:
|
2021-10-31 04:15:16 +01:00
|
|
|
|
|
|
|
buildDunePackage {
|
|
|
|
pname = "ffmpeg-av";
|
|
|
|
|
|
|
|
minimalOCamlVersion = "4.08";
|
|
|
|
|
2023-11-15 21:48:19 +01:00
|
|
|
inherit (ffmpeg-base) version src;
|
2021-10-31 04:15:16 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2023-01-05 04:04:43 +01:00
|
|
|
buildInputs = [ dune-configurator ] ++ lib.optionals stdenv.isDarwin [ AudioToolbox VideoToolbox ];
|
2021-10-31 04:15:16 +01:00
|
|
|
propagatedBuildInputs = [ ffmpeg-avutil ffmpeg-avcodec ffmpeg.dev ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = ffmpeg-base.meta // {
|
|
|
|
description = "Bindings for the ffmpeg libraries -- top-level helpers";
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|