forked from mirrors/nixpkgs
531e4b80c9
Only acts on one-line dependency lists.
22 lines
598 B
Nix
22 lines
598 B
Nix
{ stdenv, qtSubmodule, qtbase, qtdeclarative, pkgconfig
|
|
, alsaLib, gstreamer, gst-plugins-base, libpulseaudio
|
|
, darwin
|
|
}:
|
|
|
|
with stdenv.lib;
|
|
|
|
qtSubmodule {
|
|
name = "qtmultimedia";
|
|
qtInputs = [ qtbase qtdeclarative ];
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ gstreamer gst-plugins-base libpulseaudio]
|
|
++ optional (stdenv.isLinux) alsaLib;
|
|
outputs = [ "out" "dev" "bin" ];
|
|
qmakeFlags = [ "GST_VERSION=1.0" ];
|
|
NIX_LDFLAGS = optionalString (stdenv.isDarwin) "-lobjc";
|
|
postInstall = ''
|
|
moveToOutput "$qtPluginPrefix" "$bin"
|
|
moveToOutput "$qtQmlPrefix" "$bin"
|
|
'';
|
|
}
|