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

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

44 lines
799 B
Nix
Raw Normal View History

2021-10-31 03:15:16 +00:00
{ lib, buildDunePackage, dune-configurator, pkg-config, fetchFromGitHub, callPackage
, AppKit
, AudioToolbox
, AVFoundation
, Cocoa
, CoreImage
, ForceFeedback
2021-10-31 03:15:16 +00:00
, ffmpeg-base ? callPackage ./base.nix { }
, ffmpeg-av, ffmpeg
, OpenGL
, stdenv
, VideoToolbox
2021-10-31 03:15:16 +00:00
}:
buildDunePackage {
pname = "ffmpeg-avdevice";
minimalOCamlVersion = "4.08";
2023-02-28 14:05:58 +00:00
inherit (ffmpeg-base) version src duneVersion;
2021-10-31 03:15:16 +00:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [ dune-configurator ]
++ lib.optionals stdenv.isDarwin [
AppKit
AudioToolbox
AVFoundation
Cocoa
CoreImage
ForceFeedback
OpenGL
VideoToolbox
];
2021-10-31 03:15:16 +00:00
propagatedBuildInputs = [ ffmpeg-av ffmpeg.dev ];
doCheck = true;
meta = ffmpeg-base.meta // {
description = "Bindings for the ffmpeg avdevice library";
};
}