2022-06-16 17:23:12 +00:00
|
|
|
{ qtModule
|
|
|
|
, lib
|
|
|
|
, stdenv
|
|
|
|
, qtbase
|
|
|
|
, qtdeclarative
|
|
|
|
, qtshadertools
|
|
|
|
, qtsvg
|
|
|
|
, pkg-config
|
|
|
|
, alsa-lib
|
|
|
|
, gstreamer
|
|
|
|
, gst-plugins-base
|
2022-11-21 17:40:18 +00:00
|
|
|
, gst-plugins-good
|
|
|
|
, gst-libav
|
|
|
|
, gst-vaapi
|
2022-06-16 17:23:12 +00:00
|
|
|
, libpulseaudio
|
|
|
|
, wayland
|
|
|
|
, elfutils
|
|
|
|
, libunwind
|
|
|
|
, orc
|
2022-12-17 10:02:37 +00:00
|
|
|
, VideoToolbox
|
2022-06-16 17:23:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
qtModule {
|
|
|
|
pname = "qtmultimedia";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2022-12-17 10:02:37 +00:00
|
|
|
buildInputs = [ libunwind orc ]
|
|
|
|
++ lib.optionals stdenv.isLinux [ libpulseaudio elfutils alsa-lib wayland ];
|
2023-11-16 04:20:00 +00:00
|
|
|
propagatedBuildInputs = [ qtbase qtdeclarative qtsvg qtshadertools ]
|
|
|
|
++ lib.optionals stdenv.isLinux [ gstreamer gst-plugins-base gst-plugins-good gst-libav gst-vaapi ]
|
2022-12-17 10:02:37 +00:00
|
|
|
++ lib.optionals stdenv.isDarwin [ VideoToolbox ];
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin
|
2022-12-17 10:02:37 +00:00
|
|
|
"-include AudioToolbox/AudioToolbox.h";
|
|
|
|
NIX_LDFLAGS = lib.optionalString stdenv.isDarwin
|
|
|
|
"-framework AudioToolbox";
|
2022-06-16 17:23:12 +00:00
|
|
|
}
|