2015-04-26 17:09:08 +02:00
|
|
|
{ lib, stdenv, fetchurl, pkgconfig, pulseaudio, alsaLib, libcap
|
2010-02-15 18:10:35 +01:00
|
|
|
, usePulseAudio }:
|
2008-02-11 22:02:38 +01:00
|
|
|
|
2014-08-29 14:56:49 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "1.2.0";
|
|
|
|
name = "libao-${version}";
|
2008-02-11 22:02:38 +01:00
|
|
|
src = fetchurl {
|
2014-08-29 14:56:49 +02:00
|
|
|
url = "http://downloads.xiph.org/releases/ao/${name}.tar.gz";
|
|
|
|
sha256 = "1bwwv1g9lchaq6qmhvj1pp3hnyqr64ydd4j38x94pmprs4d27b83";
|
2008-02-11 22:02:38 +01:00
|
|
|
};
|
|
|
|
|
2014-08-29 14:56:49 +02:00
|
|
|
buildInputs =
|
2015-04-26 17:09:08 +02:00
|
|
|
[ pkgconfig libcap ] ++
|
2014-08-08 18:15:54 +02:00
|
|
|
lib.optional stdenv.isLinux (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-08-29 14:56:49 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
|
2008-02-11 22:02:38 +01:00
|
|
|
};
|
|
|
|
}
|