2021-10-31 04:15:16 +01:00
|
|
|
{ lib, buildDunePackage, dune-configurator, pkg-config, fetchFromGitHub, callPackage
|
2023-01-05 03:50:22 +01:00
|
|
|
, AudioToolbox
|
2021-10-31 04:15:16 +01:00
|
|
|
, ffmpeg-base ? callPackage ./base.nix { }
|
|
|
|
, ffmpeg-avutil, ffmpeg
|
2023-01-05 03:50:22 +01:00
|
|
|
, stdenv
|
|
|
|
, VideoToolbox
|
2021-10-31 04:15:16 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage {
|
|
|
|
pname = "ffmpeg-avcodec";
|
|
|
|
|
|
|
|
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 03:50:22 +01:00
|
|
|
buildInputs = [ dune-configurator ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ AudioToolbox VideoToolbox ];
|
2021-10-31 04:15:16 +01:00
|
|
|
propagatedBuildInputs = [ ffmpeg-avutil ffmpeg.dev ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = ffmpeg-base.meta // {
|
|
|
|
description = "Bindings for the ffmpeg avcodec library";
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|