* Spotify: use PulseAudio if available.

svn path=/nixpkgs/trunk/; revision=27971
This commit is contained in:
Eelco Dolstra 2011-07-26 22:24:02 +00:00
parent de4c559ce9
commit 7eb1afad49

View File

@ -1,4 +1,4 @@
{ fetchurl, stdenv, dpkg, xlibs, qt4, alsaLib, makeWrapper }:
{ fetchurl, stdenv, dpkg, xlibs, qt4, alsaLib, pulseaudio, makeWrapper }:
assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux";
@ -33,7 +33,7 @@ stdenv.mkDerivation {
patchelf \
--interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \
--set-rpath ${stdenv.lib.makeLibraryPath [ xlibs.libXScrnSaver xlibs.libX11 qt4 alsaLib stdenv.gcc.gcc ]}:${stdenv.gcc.gcc}/lib64 \
--set-rpath ${stdenv.lib.makeLibraryPath [ xlibs.libXScrnSaver xlibs.libX11 qt4 alsaLib pulseaudio stdenv.gcc.gcc ]}:${stdenv.gcc.gcc}/lib64 \
$out/bin/spotify
preload=$out/libexec/spotify/libpreload.so