mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-11 07:23:40 +00:00
f9fdf2d402
with structuredAttrs lists will be bash arrays which cannot be exported which will be a issue with some patches and some wrappers like cc-wrapper this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists in env cause a eval failure
38 lines
876 B
Nix
38 lines
876 B
Nix
{ qtModule
|
|
, lib
|
|
, stdenv
|
|
, qtbase
|
|
, qtdeclarative
|
|
, qtshadertools
|
|
, qtsvg
|
|
, pkg-config
|
|
, alsa-lib
|
|
, gstreamer
|
|
, gst-plugins-base
|
|
, gst-plugins-good
|
|
, gst-libav
|
|
, gst-vaapi
|
|
, libpulseaudio
|
|
, wayland
|
|
, elfutils
|
|
, libunwind
|
|
, orc
|
|
, VideoToolbox
|
|
}:
|
|
|
|
qtModule {
|
|
pname = "qtmultimedia";
|
|
qtInputs = [ qtbase qtdeclarative qtsvg qtshadertools ];
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ libunwind orc ]
|
|
++ lib.optionals stdenv.isLinux [ libpulseaudio elfutils alsa-lib wayland ];
|
|
propagatedBuildInputs = [ gstreamer gst-plugins-base gst-plugins-good gst-libav ]
|
|
++ lib.optionals stdenv.isLinux [ gst-vaapi ]
|
|
++ lib.optionals stdenv.isDarwin [ VideoToolbox ];
|
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin
|
|
"-include AudioToolbox/AudioToolbox.h";
|
|
NIX_LDFLAGS = lib.optionalString stdenv.isDarwin
|
|
"-framework AudioToolbox";
|
|
}
|