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

18 lines
486 B
Nix
Raw Normal View History

{ qtModule, stdenv, 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;
qtModule {
name = "qtmultimedia";
qtInputs = [ qtbase qtdeclarative ];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ gstreamer gst-plugins-base libpulseaudio]
2017-03-26 00:16:51 +01:00
++ optional (stdenv.isLinux) alsaLib;
outputs = [ "bin" "dev" "out" ];
qmakeFlags = [ "GST_VERSION=1.0" ];
2017-03-26 00:16:51 +01:00
NIX_LDFLAGS = optionalString (stdenv.isDarwin) "-lobjc";
}