2021-02-05 17:12:51 +00:00
|
|
|
{ qtModule, lib, stdenv, qtbase, qtdeclarative, pkg-config
|
2021-06-28 23:13:55 +00:00
|
|
|
, alsa-lib, gstreamer, gst-plugins-base, libpulseaudio, wayland
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
with lib;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
qtModule {
|
2021-05-28 09:39:13 +00:00
|
|
|
pname = "qtmultimedia";
|
2020-04-24 23:36:52 +00:00
|
|
|
qtInputs = [ qtbase qtdeclarative ];
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-08-20 17:08:02 +00:00
|
|
|
buildInputs = [ gstreamer gst-plugins-base libpulseaudio ]
|
2021-06-28 23:13:55 +00:00
|
|
|
++ optional (stdenv.isLinux) alsa-lib
|
2020-08-20 17:08:02 +00:00
|
|
|
++ optional (versionAtLeast qtbase.version "5.14.0" && stdenv.isLinux) wayland;
|
2020-04-24 23:36:52 +00:00
|
|
|
outputs = [ "bin" "dev" "out" ];
|
|
|
|
qmakeFlags = [ "GST_VERSION=1.0" ];
|
|
|
|
NIX_LDFLAGS = optionalString (stdenv.isDarwin) "-lobjc";
|
|
|
|
}
|