2022-03-10 19:12:11 +00:00
|
|
|
{ lib, buildDunePackage, dune-configurator, pkg-config, fetchFromGitHub, callPackage
|
|
|
|
, ffmpeg-base ? callPackage ./base.nix { }
|
|
|
|
, ffmpeg-avutil, ffmpeg-avcodec, ffmpeg
|
2023-01-20 10:41:00 +00:00
|
|
|
, stdenv
|
|
|
|
, VideoToolbox
|
2022-03-10 19:12:11 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage {
|
|
|
|
pname = "ffmpeg-swresample";
|
|
|
|
|
|
|
|
minimalOCamlVersion = "4.08";
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
inherit (ffmpeg-base) version src;
|
2022-03-10 19:12:11 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2023-01-20 10:41:00 +00:00
|
|
|
buildInputs = [ dune-configurator ] ++ lib.optionals stdenv.isDarwin [ VideoToolbox ];
|
2022-03-10 19:12:11 +00:00
|
|
|
propagatedBuildInputs = [ ffmpeg-avutil ffmpeg-avcodec ffmpeg.dev ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = ffmpeg-base.meta // {
|
|
|
|
description = "Bindings for the ffmpeg swresample library";
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|