nixpkgs/pkgs/development/ocaml-modules/ffmpeg/ffmpeg-avcodec.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
634 B
Nix
Raw Normal View History

2021-10-31 04:15:16 +01:00
{ lib, buildDunePackage, dune-configurator, pkg-config, fetchFromGitHub, callPackage
, AudioToolbox
2021-10-31 04:15:16 +01:00
, ffmpeg-base ? callPackage ./base.nix { }
, ffmpeg-avutil, ffmpeg
, 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 ];
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";
};
}