about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/ffmpeg/ffmpeg-avdevice.nix
blob: f966706cc737a1bdac874fca4285e4fc7a72e884 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{ lib, buildDunePackage, dune-configurator, pkg-config, callPackage
, AppKit
, AudioToolbox
, AVFoundation
, Cocoa
, CoreImage
, ForceFeedback
, ffmpeg-base ? callPackage ./base.nix { }
, ffmpeg-av, ffmpeg
, OpenGL
, stdenv
, VideoToolbox
}:

buildDunePackage {
  pname = "ffmpeg-avdevice";

  minimalOCamlVersion = "4.08";

  inherit (ffmpeg-base) version src;

  nativeBuildInputs = [ pkg-config ];
  buildInputs = [ dune-configurator ]
  ++ lib.optionals stdenv.hostPlatform.isDarwin [
    AppKit
    AudioToolbox
    AVFoundation
    Cocoa
    CoreImage
    ForceFeedback
    OpenGL
    VideoToolbox
  ];

  propagatedBuildInputs = [ ffmpeg-av ffmpeg.dev ];

  doCheck = true;

  meta = ffmpeg-base.meta // {
    description = "Bindings for the ffmpeg avdevice library";
  };

}