nixpkgs/pkgs/development/libraries/qt-5/5.8/qtmultimedia.nix

16 lines
430 B
Nix
Raw Normal View History

2017-03-26 00:16:51 +01:00
{ stdenv, qtSubmodule, qtbase, qtdeclarative, pkgconfig
, alsaLib, gstreamer, gst-plugins-base, libpulseaudio
2017-03-26 00:16:51 +01:00
, darwin
}:
2017-03-26 00:16:51 +01:00
with stdenv.lib;
qtSubmodule {
name = "qtmultimedia";
qtInputs = [ qtbase qtdeclarative ];
2017-03-26 00:16:51 +01:00
buildInputs = [ pkgconfig gstreamer gst-plugins-base libpulseaudio]
++ optional (stdenv.isLinux) alsaLib;
qmakeFlags = [ "GST_VERSION=1.0" ];
2017-03-26 00:16:51 +01:00
NIX_LDFLAGS = optionalString (stdenv.isDarwin) "-lobjc";
}