504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
42 lines
1,000 B
Nix
42 lines
1,000 B
Nix
{ qtModule
|
|
, lib
|
|
, stdenv
|
|
, qtbase
|
|
, qtdeclarative
|
|
, qtquick3d
|
|
, qtshadertools
|
|
, qtsvg
|
|
, pkg-config
|
|
, alsa-lib
|
|
, gstreamer
|
|
, gst-plugins-base
|
|
, gst-plugins-good
|
|
, gst-libav
|
|
, gst-vaapi
|
|
, ffmpeg_6
|
|
, libva
|
|
, libpulseaudio
|
|
, wayland
|
|
, libXrandr
|
|
, elfutils
|
|
, libunwind
|
|
, orc
|
|
, VideoToolbox
|
|
}:
|
|
|
|
qtModule {
|
|
pname = "qtmultimedia";
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ libunwind orc ffmpeg_6 ]
|
|
++ lib.optionals stdenv.isLinux [ libpulseaudio elfutils alsa-lib wayland libXrandr libva ];
|
|
propagatedBuildInputs = [ qtbase qtdeclarative qtsvg qtshadertools qtquick3d ]
|
|
++ lib.optionals stdenv.isLinux [ gstreamer gst-plugins-base gst-plugins-good gst-libav gst-vaapi ]
|
|
++ lib.optionals stdenv.isDarwin [ VideoToolbox ];
|
|
|
|
cmakeFlags = [ "-DENABLE_DYNAMIC_RESOLVE_VAAPI_SYMBOLS=0" ];
|
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin
|
|
"-include AudioToolbox/AudioToolbox.h";
|
|
NIX_LDFLAGS = lib.optionalString stdenv.isDarwin
|
|
"-framework AudioToolbox";
|
|
}
|