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

21 lines
571 B
Nix
Raw Normal View History

2017-03-25 23:16:51 +00:00
{ stdenv, qtSubmodule, qtbase, qtdeclarative, pkgconfig
, alsaLib, gstreamer, gst-plugins-base, libpulseaudio
2017-03-25 23:16:51 +00:00
, darwin
}:
2017-03-25 23:16:51 +00:00
with stdenv.lib;
qtSubmodule {
name = "qtmultimedia";
qtInputs = [ qtbase qtdeclarative ];
2017-03-25 23:16:51 +00:00
buildInputs = [ pkgconfig gstreamer gst-plugins-base libpulseaudio]
++ optional (stdenv.isLinux) alsaLib;
2017-05-18 23:19:42 +00:00
outputs = [ "out" "dev" "bin" ];
qmakeFlags = [ "GST_VERSION=1.0" ];
2017-03-25 23:16:51 +00:00
NIX_LDFLAGS = optionalString (stdenv.isDarwin) "-lobjc";
2017-05-18 23:19:42 +00:00
postInstall = ''
moveToOutput "$qtPluginPrefix" "$bin"
moveToOutput "$qtQmlPrefix" "$bin"
'';
}