3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/qt-5/5.9/qtmultimedia.nix

22 lines
598 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 ];
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" ];
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"
'';
}