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

22 lines
598 B
Nix
Raw Normal View History

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