2017-03-25 23:16:51 +00:00
|
|
|
{ stdenv, qtSubmodule, qtbase, qtdeclarative, pkgconfig
|
2017-02-28 15:37:57 +00:00
|
|
|
, alsaLib, gstreamer, gst-plugins-base, libpulseaudio
|
2017-03-25 23:16:51 +00:00
|
|
|
, darwin
|
2017-02-28 15:37:57 +00:00
|
|
|
}:
|
|
|
|
|
2017-03-25 23:16:51 +00:00
|
|
|
with stdenv.lib;
|
|
|
|
|
2017-02-28 15:37:57 +00:00
|
|
|
qtSubmodule {
|
|
|
|
name = "qtmultimedia";
|
|
|
|
qtInputs = [ qtbase qtdeclarative ];
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ gstreamer gst-plugins-base libpulseaudio]
|
2017-03-25 23:16:51 +00:00
|
|
|
++ optional (stdenv.isLinux) alsaLib;
|
2017-05-19 00:19:42 +01:00
|
|
|
outputs = [ "out" "dev" "bin" ];
|
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-05-19 00:19:42 +01:00
|
|
|
postInstall = ''
|
|
|
|
moveToOutput "$qtPluginPrefix" "$bin"
|
|
|
|
moveToOutput "$qtQmlPrefix" "$bin"
|
|
|
|
'';
|
2017-02-28 15:37:57 +00:00
|
|
|
}
|