2010-08-21 18:55:47 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, pulseaudio, alsaLib
|
2010-02-15 18:10:35 +01:00
|
|
|
, usePulseAudio }:
|
2008-02-11 22:02:38 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2011-04-23 23:58:30 +02:00
|
|
|
name = "libao-1.1.0";
|
2008-02-11 22:02:38 +01:00
|
|
|
src = fetchurl {
|
2011-04-23 23:58:30 +02:00
|
|
|
url = http://downloads.xiph.org/releases/ao/libao-1.1.0.tar.gz;
|
|
|
|
sha256 = "1m0v2y6bhr4iwsgdkc7b3y0qgpvpv1ifbxsy8n8ahsvjn6wmppi9";
|
2008-02-11 22:02:38 +01:00
|
|
|
};
|
|
|
|
|
2010-08-21 18:55:47 +02:00
|
|
|
buildInputs = [ pkgconfig alsaLib ] ++ (if usePulseAudio then [ pulseaudio ]
|
|
|
|
else [ alsaLib ]);
|
2008-02-11 22:02:38 +01:00
|
|
|
|
|
|
|
meta = {
|
2009-03-03 14:27:40 +01:00
|
|
|
longDescription = ''
|
|
|
|
Libao is Xiph.org's cross-platform audio library that allows
|
|
|
|
programs to output audio using a simple API on a wide variety of
|
|
|
|
platforms.
|
|
|
|
'';
|
2008-02-11 22:02:38 +01:00
|
|
|
homepage = http://xiph.org/ao/;
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2008-02-11 22:02:38 +01:00
|
|
|
};
|
|
|
|
}
|