2021-01-23 17:15:07 +00:00
|
|
|
{ qtModule, lib, stdenv, qtbase, qtdeclarative, pkg-config
|
2020-04-04 02:59:23 +00:00
|
|
|
, alsaLib, gstreamer, gst-plugins-base, libpulseaudio, wayland
|
2017-02-28 15:37:57 +00:00
|
|
|
}:
|
|
|
|
|
2021-01-23 17:15:07 +00:00
|
|
|
with lib;
|
2017-03-25 23:16:51 +00:00
|
|
|
|
2017-10-24 11:39:54 +00:00
|
|
|
qtModule {
|
2017-02-28 15:37:57 +00:00
|
|
|
name = "qtmultimedia";
|
|
|
|
qtInputs = [ qtbase qtdeclarative ];
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-04 02:59:23 +00:00
|
|
|
buildInputs = [ gstreamer gst-plugins-base libpulseaudio ]
|
|
|
|
++ optional (stdenv.isLinux) alsaLib
|
|
|
|
++ optional (versionAtLeast qtbase.version "5.14.0" && stdenv.isLinux) wayland;
|
2017-09-27 00:00:23 +00:00
|
|
|
outputs = [ "bin" "dev" "out" ];
|
2017-02-28 15:37:57 +00:00
|
|
|
qmakeFlags = [ "GST_VERSION=1.0" ];
|
2017-03-25 23:16:51 +00:00
|
|
|
NIX_LDFLAGS = optionalString (stdenv.isDarwin) "-lobjc";
|
2017-02-28 15:37:57 +00:00
|
|
|
}
|