1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 05:00:16 +00:00

Making pulseaudio optional on libao.

svn path=/nixpkgs/trunk/; revision=20018
This commit is contained in:
Lluís Batlle i Rossell 2010-02-15 17:10:35 +00:00
parent 6c622c014d
commit 7390c0e31f
2 changed files with 4 additions and 2 deletions

View file

@ -1,4 +1,5 @@
{ stdenv, fetchurl, pkgconfig, pulseaudio }:
{ stdenv, fetchurl, pkgconfig, pulseaudio
, usePulseAudio }:
stdenv.mkDerivation {
name = "libao-0.8.8";
@ -7,7 +8,7 @@ stdenv.mkDerivation {
sha256 = "e52e05af6b10f42d2ee9845df1a581bf2b352060eabf7946aee0a600c3878954";
};
buildInputs = [ pkgconfig pulseaudio ];
buildInputs = [ pkgconfig ] ++ stdenv.lib.optional usePulseAudio pulseaudio;
meta = {
longDescription = ''

View file

@ -4059,6 +4059,7 @@ let
libao = import ../development/libraries/libao {
inherit stdenv fetchurl pkgconfig pulseaudio;
usePulseAudio = getConfig [ "pulseaudio" ] true;
};
libarchive = import ../development/libraries/libarchive {